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

7
LINES

< > BotCompany Repo | #1001111 // codeTokensOnly

JavaX fragment (include)

static L<S> codeTokensOnly(L<S> tok) {
  int n = l(tok);
  L<S> l = emptyList(n/2);
  for (int i = 1; i < n; i += 2)
    l.add(tok.get(i));
  ret l;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001111
Snippet name: codeTokensOnly
Eternal ID of this version: #1001111/3
Text MD5: ddebb344aa623f0953c531e792174182
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-10 12:13:33
Source code size: 156 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 779 / 4303
Version history: 2 change(s)
Referenced in: [show references]