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

13
LINES

< > BotCompany Repo | #1010749 // web_allForwardRelated_multiRel

JavaX fragment (include)

1  
static L<WebNode> web_allForwardRelated_multiRel(WebNode node, S... relations) {
2  
  if (empty(relations)) relations = litstringarray("");
3  
  Web web = node.web;
4  
  L<Lisp> labels = web_parseLabels(web, relations);
5  
  new L<WebNode> l;
6  
  for (Pair<WebNode> p : keys(web.relations))
7  
    if (p.a == node) {
8  
      WebNode rel = web.relations.get(p);
9  
      if (web_hasOneOfTheLabels(rel, labels))
10  
        l.add(p.b);
11  
    }
12  
  ret l;
13  
}

Author comment

Began life as a copy of #1009834

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: #1010749
Snippet name: web_allForwardRelated_multiRel
Eternal ID of this version: #1010749/7
Text MD5: a2aaafd6b65161377eab47991512042c
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-29 14:03:25
Source code size: 436 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 539 / 583
Version history: 6 change(s)
Referenced in: [show references]