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

12
LINES

< > BotCompany Repo | #1008184 // splitConceptsFromStatements

JavaX fragment (include)

static Pair<S> splitConceptsFromStatements(S text) {
  new L<S> a;
  new L<S> b;
  for (S s : toLinesFullTrim_java(text)) {
    L<S> tok = javaTokC(s);
    if (possibleGlobalID(get(tok, 0)) && eq(get(tok, 1), "-"))
      a.add(s);
    else
      b.add(s);
  }
  ret pair(joinLines(a), joinLines(b));
}

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: #1008184
Snippet name: splitConceptsFromStatements
Eternal ID of this version: #1008184/3
Text MD5: ac1b64deb70a7e445a550be60de288b8
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-29 18:55:41
Source code size: 312 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 533 / 539
Version history: 2 change(s)
Referenced in: [show references]