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

7
LINES

< > BotCompany Repo | #1001111 - codeTokensOnly

JavaX fragment (include)

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

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1001111
Snippet name: codeTokensOnly
Eternal ID of this version: #1001111/2
Text MD5: 66c2e9906567bff2c40eb58f3d6031f5
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-04 00:55:58
Source code size: 160 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 440 / 3862
Version history: 1 change(s)
Referenced in: [show references]

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