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

14
LINES

< > BotCompany Repo | #1010003 // web_hasLabelIC

JavaX fragment (include)

static bool web_hasLabelIC(WebNode node, S text) {
  if (node != null) for (Lisp l : node.labels())
    if (eqic(text, node.web.unparseLabel(l)))
      true;
  false;
}

static bool web_hasLabelIC(Pair<WebNode> p, S text) {
  ret web_hasLabelIC(p.a.web.relation(p), text);
}

static bool web_hasLabelIC(WebNode a, WebNode b, S text) {
  ret web_hasLabelIC(a.web.relation(a, b), text);
}

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: #1010003
Snippet name: web_hasLabelIC
Eternal ID of this version: #1010003/5
Text MD5: edf0a57f01d63dd0996409530738d761
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-02 03:17:14
Source code size: 401 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 504 / 552
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1010205 - web_hasLabel - synonym of web_hasLabelIC