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

10
LINES

< > BotCompany Repo | #1010942 // web_addRelationsToMapping

JavaX fragment (include)

1  
static Map<WebNode> web_addRelationsToMapping(Map<WebNode> map) {
2  
  Web web = firstKey(map).web;
3  
  Map<WebNode> map2 = cloneMap(map);
4  
  for (WebRelation rel : web_relationObjects(web)) {
5  
    WebNode a2 = map.get(rel.a), b2 = map.get(rel.b);
6  
    if (a2 != null && b2 != null)
7  
      mapPut(map2, rel, web_findRelationObject(a2, b2));
8  
  }
9  
  ret map2;
10  
}

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: #1010942
Snippet name: web_addRelationsToMapping
Eternal ID of this version: #1010942/4
Text MD5: a5b97824371b3d51bbebcb8db056c833
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-09 02:12:56
Source code size: 358 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 406 / 446
Version history: 3 change(s)
Referenced in: [show references]