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

14
LINES

< > BotCompany Repo | #1010220 // ai_makeTesters - make list of property testers

JavaX fragment (include)

// returns list of func(O) -> Bool
static L ai_makeTesters(Web web, WebNode op) {
  new L testers;
  
  for (Pair<S, WebNode> p : web_forwardRelationsTextPlusNodes(op)) {
    if (eqic(p.a, "that is")) {
      S property = p.b.text();
      testers.add(ai_makeTester(web, web_text(op), property));
    }
    else fail("Unknown condition: " + p);
  }
  
  ret testers;
}

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: #1010220
Snippet name: ai_makeTesters - make list of property testers
Eternal ID of this version: #1010220/3
Text MD5: d0effa9b788d57589560aeaf33e66d6f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-06 20:57:37
Source code size: 381 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 471 / 480
Version history: 2 change(s)
Referenced in: [show references]