1 | static WebNode web_findForwardRelated_multiRel(WebNode node, S... relations) {
|
2 | if (node == null) null; |
3 | if (empty(relations)) relations = litstringarray("");
|
4 | Web web = node.web; |
5 | L<Lisp> labels = web_parseLabels(web, relations); |
6 | for (Pair<WebNode> p : web_relations(web)) |
7 | if (p.a == node) {
|
8 | WebNode rel = web.getRelationOpt(p); |
9 | if (web_hasOneOfTheLabels(rel, labels)) |
10 | ret p.b; |
11 | } |
12 | null; |
13 | } |
Began life as a copy of #1010749
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: | #1010758 |
| Snippet name: | web_findForwardRelated_multiRel |
| Eternal ID of this version: | #1010758/5 |
| Text MD5: | a9ee92560431f91ae56e97275c56c719 |
| 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:27:46 |
| Source code size: | 436 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 723 / 754 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |