1 | static Web web_dropEmptyRelations(Web web) { |
2 | for (WebRelation rel : cloneList(values(web.relations))) |
3 | if (empty(rel.labels)) |
4 | web_removeRelation(rel); |
5 | ret web; |
6 | } |
Began life as a copy of #1009967
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: | #1010301 |
Snippet name: | web_dropEmptyRelations - drop relations with zero labels [changes original] |
Eternal ID of this version: | #1010301/6 |
Text MD5: | 59fc1c8bf31c609293fd03480a9fead4 |
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:27 |
Source code size: | 179 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 483 / 536 |
Version history: | 5 change(s) |
Referenced in: | [show references] |