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

13
LINES

< > BotCompany Repo | #1010932 // webs_search_dollarXY

JavaX fragment (include)

static L<Pair<WebNode>> webs_search_dollarXY(final Web searchWeb, Collection<Web> webs) {
  new L<Map<WebNode>> mappings;
  for (Web web : webs)
    addIfNotNull(mappings, web_matchAllPerms_x(searchWeb, web, f nodeMatch_dollarVars));
    
  ret map(mappings, func(Map<WebNode> map) {
    map = web_addRelationsToMapping(map);
    print("xy map: " + map);
    ret pair(
      map.get(web_findNodeOrRelation(searchWeb, "$X")),
      map.get(web_findNodeOrRelation(searchWeb, "$Y")));
  });
}

Author comment

Began life as a copy of #1010826

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: #1010932
Snippet name: webs_search_dollarXY
Eternal ID of this version: #1010932/6
Text MD5: 4d9c35e6b1c375e950fcf96f4b508cc9
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:11:31
Source code size: 501 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 427 / 465
Version history: 5 change(s)
Referenced in: [show references]