1 | static Pair<WebNode> web_findTriple(Web web, S a, S rel, S b) {
|
2 | for (Pair<WebNode> p : web_relations(web)) {
|
3 | //print(p.a.text() + " / " + a); |
4 | //print(p.b.text() + " / " + b); |
5 | if (web_hasLabel(p.a, a) && web_hasLabel(p.b, b) && web_hasLabelIC(p, rel)) |
6 | ret p; |
7 | } |
8 | null; |
9 | } |
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: | #1010206 |
| Snippet name: | web_findTriple - find node/relation/node |
| Eternal ID of this version: | #1010206/4 |
| Text MD5: | e311b486e700fb67a612098d58ee954f |
| 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 18:20:36 |
| Source code size: | 299 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 754 / 808 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |