static void web_printMapping(Map<WebNode> mapping) { if (empty(mapping)) { print("-"); ret; } final Map<WebNode> rev = reversedMap(mapping); Web web = first(mapping.values()).web; L<Pair<WebNode>> relations = web_nonEmptyRelations(web); print("Web " + web.globalID + " from " + web.source + ": " + n(web.nodes, "node") + ", " + n(relations, "relation")); pnlIndent(map(web_nonRelationNodes(web), func(WebNode n) { WebNode src = rev.get(n); ret (src != null ? src.text() + " > " : "") + n.text(); })); print(); web_printRelations(web); }
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: | 414 / 437 |
Version history: | 3 change(s) |
Referenced in: | [show references] |