static L<S> allCurlyBracketPhrases(S s) { L<S> tok = javaTok(s); Map<Int> map = curlyBracketMap(tok); new L<S> phrases; for (int i : keys(map)) { int j = map.get(i); phrases.add(trimJoinSubList(tok, i+1, j-1)); } ret phrases; }
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: | 430 / 453 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |