static Pair<WebNode> web_bestNodeMatch(Web a, Web b) { new Best<Pair<WebNode>> best; for (WebNode n : web_nodes(a)) { new HashSet<WebNode> candidates; for (Lisp l : n.labels()) candidates.addAll(b.index.get(l)); for (WebNode c : candidates) best.put(pair(n, c), web_numberOfSharedLabels(n, c)); } ret best!; }
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: | #1010596 |
| Snippet name: | web_bestNodeMatch |
| Eternal ID of this version: | #1010596/2 |
| Text MD5: | 6635f85fbf6d7c63c2c96e616681b2f8 |
| 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 22:41:06 |
| Source code size: | 359 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 654 / 688 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |