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)

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

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: 403 / 434
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)