1 | static L<WebNode> web_stringsToChain(L<S> l) { |
2 | if (empty(l)) null; |
3 | Web web = simpleWeb(); |
4 | new L<WebNode> nodes; |
5 | WebNode node = null; |
6 | for (S s : l) { |
7 | WebNode n = web.newNode(s); |
8 | nodes.add(n); |
9 | web_addRelation(node, n, ""); |
10 | node = n; |
11 | } |
12 | ret nodes; |
13 | } |
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: | 422 / 448 |
Version history: | 2 change(s) |
Referenced in: | [show references] |