Libraryless. Click here for Pure Java version (35L/1K).
1 | static int[] repIntArray(int value, int n) { |
2 | int[] a = new[n]; |
3 | for i to n: a[i] = value; |
4 | ret a; |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035729 |
Snippet name: | repIntArray |
Eternal ID of this version: | #1035729/1 |
Text MD5: | 48d57ab8824dbd686c71e4401958d027 |
Transpilation MD5: | aa0ed1db8c25f4c00f59bf16a627ca26 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-14 21:56:23 |
Source code size: | 107 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 152 / 203 |
Referenced in: | [show references] |