1 | static L<WebNode> web_allForwardRelated(WebNode node, S relationLabel) { |
2 | ret web_allForwardRelated(node.web, node, relationLabel); |
3 | } |
4 | |
5 | static L<WebNode> web_allForwardRelated(Web web, WebNode node, S relationLabel) { |
6 | ret web_allForwardRelated(web, node, web.parseLabel(relationLabel)); |
7 | } |
8 | |
9 | static L<WebNode> web_allForwardRelated(Web web, WebNode node, Lisp relationLabel) { |
10 | new L<WebNode> l; |
11 | for (Pair<WebNode> p : web_relations(web)) |
12 | if (p.a == node) { |
13 | WebNode rel = web.getRelationOpt(p); |
14 | if (rel.hasLabel(relationLabel)) |
15 | l.add(p.b); |
16 | } |
17 | ret l; |
18 | } |
19 | |
20 | static L<WebNode> web_allForwardRelated(WebNode node) { |
21 | ret pairList_forwardLookup(web_relations(node.web), node); |
22 | } |
23 | |
24 | static L<WebNode> web_allForwardRelated(Web web, S a, S relationLabel) { |
25 | Lisp name = web.parseLabel(a); |
26 | Lisp rel = web.parseLabel(relationLabel); |
27 | new HashSet<WebNode> l; |
28 | for (WebNode node : web_allNodesNamed(web, name)) |
29 | l.addAll(web_allForwardRelated(web, node, rel)); |
30 | ret asList(l); |
31 | } |
Began life as a copy of #1009833
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: | #1009834 |
Snippet name: | web_allForwardRelated |
Eternal ID of this version: | #1009834/9 |
Text MD5: | dd5bf9ed4c1c9ecaab55249e4dac7eb3 |
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-27 11:28:45 |
Source code size: | 1034 bytes / 31 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 541 / 549 |
Version history: | 8 change(s) |
Referenced in: | [show references] |