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

9
LINES

< > BotCompany Repo | #1010118 // web_dropAllNodesBut

JavaX fragment (include)

static void web_dropAllNodesBut(WebNode... nodes) {
  web_dropAllNodesBut(first(nodes).web, asHashSet(nodes));
}
  
static void web_dropAllNodesBut(Web web, Set<WebNode> set) {
  for (WebNode node : web_nonRelationNodes(web))
    if (!set.contains(node))
      web_removeNode(node);
}

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: #1010118
Snippet name: web_dropAllNodesBut
Eternal ID of this version: #1010118/6
Text MD5: 25f436795337dec490410e53fded599e
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-18 02:52:44
Source code size: 292 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 462 / 469
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)