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

6
LINES

< > BotCompany Repo | #1010255 - web_firstLabelIndex

JavaX fragment (include)

static Map<Lisp, WebNode> web_firstLabelIndex(Web web) {
  new HashMap<Lisp, WebNode> index;
  for (WebNode node : web.nodes)
    if (!(node instanceof WebRelation) && nempty(node.labels)) index.put(first(node.labels), node);
  ret index;
}

Author comment

Began life as a copy of #1009979

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1010255
Snippet name: web_firstLabelIndex
Eternal ID of this version: #1010255/1
Text MD5: 59b6f6efc34caad5a614bd875878a0ed
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-07 18:58:34
Source code size: 245 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 254 / 252
Referenced in: [show references]

Formerly at http://tinybrain.de/1010255 & http://1010255.tinybrain.de