static L<S> tok_combineRoundOrCurlyBrackets_keep(L<S> tok) { new L<S> l; for i over tok: { S t = tok.get(i); if (odd(i) && eqOneOf(t, "{", "(")) { int j = findEndOfBracketPart(tok, i); l.add(joinSubList(tok, i, j)); i = j-1; } else l.add(t); } ret l; }
Began life as a copy of #1011445
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1013160 |
| Snippet name: | tok_combineRoundOrCurlyBrackets_keep |
| Eternal ID of this version: | #1013160/6 |
| Text MD5: | 5b4091214f3b9be0f930e850fe13d34d |
| 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:39 |
| Source code size: | 308 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 664 / 757 |
| Version history: | 5 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1013171 - tok_combineRoundOrCurlyBrackets #1017797 - tok_combineRoundCurlySquareBrackets_keep #1026465 - tok_combineRoundOrCurlyBrackets_keep_strict |