Libraryless. Click here for Pure Java version (41L/1K).
1 | static int[] intArrayFromFunction(int n, IF1_IntToInt f) { |
2 | int[] array = new[n]; |
3 | for i to n: |
4 | array[i] = f.get(i); |
5 | ret array; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035705 |
Snippet name: | intArrayFromFunction |
Eternal ID of this version: | #1035705/1 |
Text MD5: | 5729773e19aa47acd31368da9ab32c6b |
Transpilation MD5: | 8219397b634ebfbae75ef21e9dbb6a7d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-09 22:21:05 |
Source code size: | 141 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 132 / 171 |
Referenced in: | [show references] |