Libraryless. Click here for Pure Java version (41L/1K).
static int[] intArrayFromFunction(int n, IF1_IntToInt f) { int[] array = new[n]; for i to n: array[i] = f.get(i); ret array; }
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: | 130 / 169 |
Referenced in: | [show references] |