Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1010742 - lastChar

JavaX fragment (include)

static char lastChar(S s) {
  ret empty(s) ? '\0' : s.charAt(l(s)-1);
}

download  show line numbers  debug dex   

Travelled to 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jozkyjcghlvl, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1010742
Snippet name: lastChar
Eternal ID of this version: #1010742/1
Text MD5: f4cdae5e7a441f54de082a809f3a2421
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-28 16:10:00
Source code size: 73 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 176 / 270
Referenced in: [show references]

Formerly at http://tinybrain.de/1010742 & http://1010742.tinybrain.de