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)

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

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: 437 / 476
Version history: 4 change(s)
Referenced in: [show references]