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

12
LINES

< > TinyBrain | #1008893 - ctxActions

JavaX fragment (include)

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

Author comment

Began life as a copy of #1008885

download  show line numbers  debug dex   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

No comments. add comment

Snippet ID: #1008893
Snippet name: ctxActions
Eternal ID of this version: #1008893/1
Text MD5: 396489b781447fc700035ed2b3d3603d
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 23:44:49
Source code size: 243 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 18 / 22
Referenced in: [show]