Libraryless. Click here for Pure Java version (3792L/22K).
1 | static <A> O[] lambdaMapLike countIteratorToObjectArray(IF1<Int, O> f, int a default 0, int b) {
|
2 | int n = max(b-a, 0); |
3 | O[] array = new[n]; |
4 | for i to n: |
5 | array[i] = f.get(a++); |
6 | ret array; |
7 | } |
Began life as a copy of #1030031
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033172 |
| Snippet name: | countIteratorToObjectArray |
| Eternal ID of this version: | #1033172/4 |
| Text MD5: | a210e0dbb981c73afef1b01514ff3c26 |
| Transpilation MD5: | 155f7e4bd7fb200bb3f98b6bb8d3bda1 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-16 02:33:33 |
| Source code size: | 203 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 337 / 441 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |