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

5
LINES

< > BotCompany Repo | #1006953 // produceN - call a production function n times

JavaX fragment (include)

static L produceN(O f, int n) {
  new L l;
  for i to n: l.add(callF(f));
  ret l;
}

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: #1006953
Snippet name: produceN - call a production function n times
Eternal ID of this version: #1006953/1
Text MD5: eab05814563cc4bcf52799f8f7db06de
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-19 17:21:07
Source code size: 88 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 437 / 479
Referenced in: [show references]