Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1010301 // web_dropEmptyRelations - drop relations with zero labels [changes original]

JavaX fragment (include)

static Web web_dropEmptyRelations(Web web) {
  for (WebRelation rel : cloneList(values(web.relations)))
    if (empty(rel.labels))
      web_removeRelation(rel);
  ret web;
}

Author comment

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: 366 / 417
Version history: 5 change(s)
Referenced in: [show references]