static Web web_unpackRelationsStartingWith(Web web, S prefix) { for (WebRelation rel : values(web.relations)) { new L<Lisp> labels; for (Lisp l : rel.labels) { S s = web.unparseLabel(l); if (swic(s, prefix)) labels.add(web.parseLabel(trim(s.substring(l(prefix))))); } web_setLabels(rel, labels); } ret web_dropEmptyRelations(web); }
Began life as a copy of #1010304
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: | #1010314 |
Snippet name: | web_unpackRelationsStartingWith [changes original] |
Eternal ID of this version: | #1010314/3 |
Text MD5: | 570a6f2690e8868245a0c931901083c3 |
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-11 02:56:08 |
Source code size: | 385 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 471 / 488 |
Version history: | 2 change(s) |
Referenced in: | [show references] |