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

14
LINES

< > BotCompany Repo | #1007744 // aiMakeStatements

JavaX fragment (include)

static L<Statement> aiMakeStatements(L<S> statements) {
  ret map(func(S s) {
    Statement st = unlisted(Statement);
    S id = getGlobalIDPrefix(s);
    if (id == null) {
      st.globalID = aGlobalID();
      st.text = s;
    } else {
      st.globalID = id;
      st.text = dropGlobalIDPrefix(s);
    }
    ret st;
  }, statements);
}

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: #1007744
Snippet name: aiMakeStatements
Eternal ID of this version: #1007744/2
Text MD5: e7f6b6d9aba20a706015906bea775ca4
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-24 14:21:24
Source code size: 351 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 447 / 455
Version history: 1 change(s)
Referenced in: [show references]