Libraryless. Click here for Pure Java version (5068L/28K).
1 | static <A> A lambdaMapLike applyNTimes(IF1<A> f, int n, A a) { |
2 | repeat n { a = f.get(a); } |
3 | ret a; |
4 | } |
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: | 135 / 183 |
Referenced in: | [show references] |