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

10
LINES

< > BotCompany Repo | #1007456 // tokSplitAtComma

JavaX fragment (include)

1  
static L<S> tokSplitAtComma(S s) {
2  
  L<S> tok = javaTok(s);
3  
  new L<S> l;
4  
  while (l(tok) > 1) {
5  
    int i = smartIndexOf(tok, ",");
6  
    l.add(trim(join(subList(tok, 0, i))));
7  
    tok = subList(tok, i+1);
8  
  }
9  
  ret l;
10  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1007456
Snippet name: tokSplitAtComma
Eternal ID of this version: #1007456/3
Text MD5: 9619237de740f3165a38f0a5bb6c6f48
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-23 21:26:45
Source code size: 228 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 522 / 580
Version history: 2 change(s)
Referenced in: [show references]