static L<S> tok_combineRoundCurlySquareBrackets_keep(L<S> tok) { new L<S> l; for i over tok: { S t = tok.get(i); if (odd(i) && eqOneOf(t, "{", "(", "[")) { int j = findEndOfBracketPart2(tok, i); l.add(joinSubList(tok, i, j)); i = j-1; } else l.add(t); } ret l; }
Began life as a copy of #1013160
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1017797 |
Snippet name: | tok_combineRoundCurlySquareBrackets_keep |
Eternal ID of this version: | #1017797/1 |
Text MD5: | e9de6188b0d6023ed4af09355adb5ab2 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-12 15:03:12 |
Source code size: | 318 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 374 / 422 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |