1 | static L<CtxCase> ctxCases(S body) { |
2 | L<S> lines = lines(body); |
3 | int i = 0; |
4 | new L<CtxCase> cases; |
5 | while (i < l(lines)) { |
6 | Pair<CtxCase, Int> p = ctxCase(lines, i); |
7 | if (p == null) break; |
8 | cases.add(p.a); |
9 | i = p.b+1; |
10 | } |
11 | ret cases; |
12 | } |
Began life as a copy of #1008885
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: | #1008979 |
Snippet name: | ctxCases |
Eternal ID of this version: | #1008979/3 |
Text MD5: | 30e7102091836f2924d2249f2261dd07 |
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-21 18:34:48 |
Source code size: | 263 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 365 / 423 |
Version history: | 2 change(s) |
Referenced in: | [show references] |