1 | static L<S> allCurlyBracketPhrases(S s) { |
2 | L<S> tok = javaTok(s); |
3 | Map<Int> map = curlyBracketMap(tok); |
4 | new L<S> phrases; |
5 | for (int i : keys(map)) { |
6 | int j = map.get(i); |
7 | phrases.add(trimJoinSubList(tok, i+1, j-1)); |
8 | } |
9 | ret phrases; |
10 | } |
Began life as a copy of #1011743
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1012550 |
Snippet name: | allCurlyBracketPhrases |
Eternal ID of this version: | #1012550/1 |
Text MD5: | f6a904ec5a055bfc5f45d65774f1b505 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-07 00:12:20 |
Source code size: | 256 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 429 / 453 |
Referenced in: | [show references] |