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

6
LINES

< > BotCompany Repo | #1010703 // nodesToWebs - preserves order, drops duplicates

JavaX fragment (include)

static L<Web> nodesToWebs(Collection<WebNode> nodes) {
  Set<Web> webs = litorderedset();
  if (nodes != null) for (WebNode node : nodes)
    if (node != null) addIfNotNull(webs, node.web);
  ret asList(webs);
}

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: #1010703
Snippet name: nodesToWebs - preserves order, drops duplicates
Eternal ID of this version: #1010703/5
Text MD5: 4573b7a6a1b1657414c6fc936e2e3a0f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-29 00:19:31
Source code size: 216 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 382 / 414
Version history: 4 change(s)
Referenced in: [show references]