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

4
LINES

< > BotCompany Repo | #1034994 // applyNTimes

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5068L/28K).

static <A> A lambdaMapLike applyNTimes(IF1<A> f, int n, A a) {
  repeat n { a = f.get(a); }
  ret a;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034994
Snippet name: applyNTimes
Eternal ID of this version: #1034994/1
Text MD5: c425bdc839140f89d468dfb71d6fd52f
Transpilation MD5: e90ecd68b8db35fa87350539e035b4d8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-21 17:47:04
Source code size: 105 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 49 / 75
Referenced in: [show references]