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

14
LINES

< > BotCompany Repo | #1007744 // aiMakeStatements

JavaX fragment (include)

1  
static L<Statement> aiMakeStatements(L<S> statements) {
2  
  ret map(func(S s) {
3  
    Statement st = unlisted(Statement);
4  
    S id = getGlobalIDPrefix(s);
5  
    if (id == null) {
6  
      st.globalID = aGlobalID();
7  
      st.text = s;
8  
    } else {
9  
      st.globalID = id;
10  
      st.text = dropGlobalIDPrefix(s);
11  
    }
12  
    ret st;
13  
  }, statements);
14  
}

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: 547 / 553
Version history: 1 change(s)
Referenced in: [show references]