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

13
LINES

< > BotCompany Repo | #1007720 // web_expandOperations

JavaX fragment (include)

1  
static void web_expandOperations(Web web) {
2  
  for (Lisp rule : trueStatementsByHead("pqnfhkzxoqkaoyqk")) {
3  
    S toExpand = rule.s(0);
4  
    //print("Expanding " + toExpand);
5  
    for (WebNode node : cloneList(web.nodes))
6  
      for (Lisp lbl : node.labels)
7  
        if (lbl.is(toExpand)) {
8  
          //print("  Expanding " + lbl);
9  
          for (Lisp child : lbl)
10  
            web.node(child);
11  
        }
12  
  }
13  
}

Author comment

Began life as a copy of #1007697

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: #1007720
Snippet name: web_expandOperations
Eternal ID of this version: #1007720/3
Text MD5: facb36aca2a50563e068e3ef2ed927b3
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-02 22:29:38
Source code size: 416 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 581 / 542
Version history: 2 change(s)
Referenced in: [show references]