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

6
LINES

< > BotCompany Repo | #1010255 // web_firstLabelIndex

JavaX fragment (include)

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

Author comment

Began life as a copy of #1009979

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: #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: 470 / 502
Referenced in: [show references]