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

7
LINES

< > BotCompany Repo | #1010013 // web_replaceLabelsX

JavaX fragment (include)

static void web_replaceLabelsX(Web web, S a, S lbl1, S b, S lbl2) {
  for (Pair<WebNode> p : keys(web.relations))
    if (web_hasLabelIC(p.a, a) && web_hasLabelIC(web.relations.get(p), lbl1)) {
      p.a.labels = ll(web.parseLabel(b));
      web.relations.get(p).labels = ll(web.parseLabel(lbl2));
    }
}

Author comment

Began life as a copy of #1010008

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: #1010013
Snippet name: web_replaceLabelsX
Eternal ID of this version: #1010013/1
Text MD5: 00130efba00a639ad44ec37b69e0f18b
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-28 21:19:30
Source code size: 311 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 347 / 372
Referenced in: [show references]