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

13
LINES

< > BotCompany Repo | #1007720 // web_expandOperations

JavaX fragment (include)

static void web_expandOperations(Web web) {
  for (Lisp rule : trueStatementsByHead("pqnfhkzxoqkaoyqk")) {
    S toExpand = rule.s(0);
    //print("Expanding " + toExpand);
    for (WebNode node : cloneList(web.nodes))
      for (Lisp lbl : node.labels)
        if (lbl.is(toExpand)) {
          //print("  Expanding " + lbl);
          for (Lisp child : lbl)
            web.node(child);
        }
  }
}

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: 582 / 542
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1007745 - web_expandOperations2