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  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, jozkyjcghlvl, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

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: 474 / 1263
Referenced in: [show references]