static L<S> splitAtDoubleLeftArrow(S s) { ret splitAtDoubleLeftArrow(javaTok(s)); } static L<S> splitAtDoubleLeftArrow(L<S> tok) { new L<S> l; int i = 0; while (i < l(tok)) { int j = indexOfSubList(tok, ll("<", "", "="), i); if (i >= l(tok)) break; if (j < 0) j = l(tok); l.add(trimJoin(tok.subList(i, j))); i = j+3; } ret l; }
Began life as a copy of #1011989
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: | #1014235 |
Snippet name: | splitAtDoubleLeftArrow - javaTok and split at "<=" (and trim) |
Eternal ID of this version: | #1014235/3 |
Text MD5: | 9ba27ab223fbd3a7ddc7c670b888e3c6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-17 02:11:24 |
Source code size: | 375 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 383 / 407 |
Version history: | 2 change(s) |
Referenced in: | [show references] |