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

8
LINES

< > BotCompany Repo | #1010219 // ai_enumeratorFor - make an iterator for certain things - e.g. "integers"

JavaX fragment (include)

1  
static Iterator ai_enumeratorFor(Web web, S plural) {
2  
  Pair<WebNode> finder = web_findTriple(web, "A standard function that enumerates", "", plural);
3  
  if (finder == null) fail("No finder");
4  
  S sfName = web_operandText(finder.b, "is");
5  
  if (sfName == null) fail("No sf");
6  
  print("Using function: " + sfName);
7  
  ret getIterator(makeAndCall(sfName));
8  
}

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: #1010219
Snippet name: ai_enumeratorFor - make an iterator for certain things - e.g. "integers"
Eternal ID of this version: #1010219/1
Text MD5: 0678bb5b3a9f5b04c4b6cf1baba6395d
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:55:21
Source code size: 361 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 404 / 435
Referenced in: [show references]