Libraryless. Click here for Pure Java version (3798L/22K).
1 | static O[] toObjectArray_nonConcurrent(Cl c) { |
2 | int n = l(c); |
3 | O[] a = new[n]; |
4 | if (c != null) { |
5 | var it = c.iterator(); |
6 | for i to n: |
7 | a[i] = it.next(); |
8 | } |
9 | ret a; |
10 | } |
Began life as a copy of #1002013
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032634 |
Snippet name: | toObjectArray_nonConcurrent - for non-concurrent collections |
Eternal ID of this version: | #1032634/1 |
Text MD5: | aa03c1bd7197b3f75cd03acbc88c2a2b |
Transpilation MD5: | c4608f1e936710c029592b7527ac345b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-09-29 22:43:05 |
Source code size: | 192 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 121 / 171 |
Referenced in: | [show references] |