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

13
LINES

< > BotCompany Repo | #1010373 // web_stringsToChain - list must be non-empty (or you get null)

JavaX fragment (include)

static L<WebNode> web_stringsToChain(L<S> l) {
  if (empty(l)) null;
  Web web = simpleWeb();
  new L<WebNode> nodes;
  WebNode node = null;
  for (S s : l) {
    WebNode n = web.newNode(s);
    nodes.add(n);
    web_addRelation(node, n, "");
    node = n;
  }
  ret nodes;
}

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: #1010373
Snippet name: web_stringsToChain - list must be non-empty (or you get null)
Eternal ID of this version: #1010373/3
Text MD5: 7abc8c8eb7255746f0faa7ffe2d5bd51
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-13 16:44:25
Source code size: 287 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 420 / 445
Version history: 2 change(s)
Referenced in: [show references]