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)

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

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