Libraryless. Click here for Pure Java version (3798L/22K).
static O[] toObjectArray_nonConcurrent(Cl c) { int n = l(c); O[] a = new[n]; if (c != null) { var it = c.iterator(); for i to n: a[i] = it.next(); } ret a; }
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: | 122 / 171 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |