// map: (condition -> goto) static SS ctxCaseGotos(S body) { L<S> lines = lines(body); int i = 0; SS map = litorderedmap(); while (i < l(lines)) { T3<S, S, Int> t = ctxCaseGoto(lines, i); if (t == null) break; map.put(t.a, t.b); i = t.c+1; } ret map; }
Began life as a copy of #1008883
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: | #1008885 |
Snippet name: | ctxCaseGotos |
Eternal ID of this version: | #1008885/4 |
Text MD5: | 770edd8a4ae0412d4212075822776c5d |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-15 18:42:38 |
Source code size: | 292 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 522 / 554 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1008893 - ctxActions #1008979 - ctxCases |