Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1008979 // ctxCases

JavaX fragment (include)

static L<CtxCase> ctxCases(S body) {
  L<S> lines = lines(body);
  int i = 0;
  new L<CtxCase> cases;
  while (i < l(lines)) {
    Pair<CtxCase, Int> p = ctxCase(lines, i);
    if (p == null) break;
    cases.add(p.a);
    i = p.b+1;
  }
  ret cases;
}

Author comment

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: 304 / 363
Version history: 2 change(s)
Referenced in: [show references]