1 | static Web web_unpackRelationsStartingWith(Web web, S prefix) {
|
2 | for (WebRelation rel : values(web.relations)) {
|
3 | new L<Lisp> labels; |
4 | for (Lisp l : rel.labels) {
|
5 | S s = web.unparseLabel(l); |
6 | if (swic(s, prefix)) |
7 | labels.add(web.parseLabel(trim(s.substring(l(prefix))))); |
8 | } |
9 | web_setLabels(rel, labels); |
10 | } |
11 | ret web_dropEmptyRelations(web); |
12 | } |
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: | 717 / 744 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |