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

4
LINES

< > BotCompany Repo | #1017601 // indexOfLastToken - uses javaTok

JavaX fragment (include)

static int indexOfLastToken(S s) {
  L<S> tok = javaTok(s);
  ret l(tok) > 1 ? l(s)-l(last(tok))-l(nextToLast(tok)) : -1;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017601
Snippet name: indexOfLastToken - uses javaTok
Eternal ID of this version: #1017601/2
Text MD5: 8a3dc9c74b878a51f4db5812316ab8d1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-29 17:20:46
Source code size: 126 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 356 / 363
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)