static Web web_clusterClean(Web web) { ret web_clusterClean(web, clustersForWeb(web)); } static Web web_clusterClean(Web web, Clusters<S> clusters) { if (empty(clusters)) ret web; for (WebNode node : web_nodesAndRelations(web)) { new L<Lisp> labels; for (Lisp l : node.labels) { S s = first(clusters.get(web.unparseLabel(l))); setAdd(labels, s != null ? web.parseLabel(s) : l); } web_setLabels(node, labels); } ret web; }
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: | #1010459 |
Snippet name: | web_clusterClean - modifies web |
Eternal ID of this version: | #1010459/3 |
Text MD5: | d5705aa9c221c35f5e41f502869b3af1 |
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-18 02:43:35 |
Source code size: | 477 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 459 / 487 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |