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

7
LINES

< > BotCompany Repo | #1009967 // web_nonEmptyRelations - all relations with at least one label

JavaX fragment (include)

1  
static L<Pair<WebNode>> web_nonEmptyRelations(Web web) {
2  
  L<Pair<WebNode>> l = new L;
3  
  for (Pair<WebNode> r : web_relations(web))
4  
    if (nempty(web.getRelation(r).labels()))
5  
      l.add(r);
6  
  ret l;
7  
}

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: #1009967
Snippet name: web_nonEmptyRelations - all relations with at least one label
Eternal ID of this version: #1009967/8
Text MD5: 0d3e36be06115bce088481b913cb0628
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-26 16:16:40
Source code size: 209 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 537 / 559
Version history: 7 change(s)
Referenced in: [show references]