1 | static void web_printMapping(Map<WebNode> mapping) { |
2 | if (empty(mapping)) { print("-"); ret; } |
3 | final Map<WebNode> rev = reversedMap(mapping); |
4 | Web web = first(mapping.values()).web; |
5 | L<Pair<WebNode>> relations = web_nonEmptyRelations(web); |
6 | print("Web " + web.globalID + " from " + web.source + ": " + n(web.nodes, "node") + ", " + n(relations, "relation")); |
7 | pnlIndent(map(web_nonRelationNodes(web), func(WebNode n) { |
8 | WebNode src = rev.get(n); |
9 | ret (src != null ? src.text() + " > " : "") + n.text(); |
10 | })); |
11 | print(); |
12 | web_printRelations(web); |
13 | } |
Began life as a copy of #1010804
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: | #1010806 |
Snippet name: | web_printMapping |
Eternal ID of this version: | #1010806/4 |
Text MD5: | 2bb8573dfedfd06b455e8d98dade1e5d |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-03 22:51:50 |
Source code size: | 575 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 416 / 440 |
Version history: | 3 change(s) |
Referenced in: | [show references] |