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

12
LINES

< > BotCompany Repo | #1010217 // web_findNodeWithForwardRelations

JavaX fragment (include)

static WebNode web_findNodeWithForwardRelations(Web web, S name, O... params) {
  search: for (WebNode node : web_nodesNamed(web, name)) {
    for (int i = 0; i < l(params); i += 2) {
      S rel = cast params[i];
      S target = cast params[i+1];
      if (!web_hasForwardRelation(node, rel, target))
        continue search;
    }
    ret node;
  }
  null;
}

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: #1010217
Snippet name: web_findNodeWithForwardRelations
Eternal ID of this version: #1010217/2
Text MD5: 51089c6c0b0227dd525a5bfd20205b18
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-06 21:19:23
Source code size: 372 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 419 / 418
Version history: 1 change(s)
Referenced in: [show references]