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

12
LINES

< > BotCompany Repo | #1010312 // web_dropRelationsStartingWith [changes original]

JavaX fragment (include)

static Web web_dropRelationsStartingWith(Web web, S prefix) {
  for (WebRelation rel : values(web.relations)) {
    new L<Lisp> labels;
    for (Lisp l : rel.labels)
      if (!swic(web.unparseLabel(l), prefix))
        labels.add(l);
    if (l(labels) < l(rel.labels))
      web_setLabels(rel, labels);
  }
  web_dropEmptyRelations(web);
  ret web;
}

Author comment

Began life as a copy of #1010300

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: #1010312
Snippet name: web_dropRelationsStartingWith [changes original]
Eternal ID of this version: #1010312/1
Text MD5: 1723ccc24e78cab0a63360f69eaad58d
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:17:48
Source code size: 362 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 437 / 455
Referenced in: [show references]