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

8
LINES

< > BotCompany Repo | #1009971 // web_relationsOfType

JavaX fragment (include)

1  
static L<Pair<WebNode>> web_relationsOfType(Web web, S type) {
2  
  Lisp lbl = web.parseLabel(type);
3  
  L<Pair<WebNode>> l = new L;
4  
  for (Pair<WebNode> p : keys(web.relations))
5  
    if (web.getRelation(p).hasLabel(lbl))
6  
      l.add(p);
7  
  ret l;
8  
}

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: #1009971
Snippet name: web_relationsOfType
Eternal ID of this version: #1009971/4
Text MD5: 752b493ec466bb028b36058ac9b14916
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-28 20:50:18
Source code size: 249 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 527 / 567
Version history: 3 change(s)
Referenced in: [show references]