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

8
LINES

< > BotCompany Repo | #1010917 // web_findOrMakeForwardRelated

JavaX fragment (include)

1  
static WebNode web_findOrMakeForwardRelated(WebNode node, S relation) {
2  
  WebNode n = web_findForwardRelated(node, lisp(relation));
3  
  if (n == null) {
4  
    n = node.web.newNode();
5  
    node.web.getRelation(node, n).addLabel(relation);
6  
  }
7  
  ret n;
8  
}

Author comment

Began life as a copy of #1009844

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: #1010917
Snippet name: web_findOrMakeForwardRelated
Eternal ID of this version: #1010917/3
Text MD5: 8167b6a32f7733da090fc6d4e179aa21
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-08 19:37:11
Source code size: 254 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 338 / 409
Version history: 2 change(s)
Referenced in: [show references]