Libraryless. Click here for Pure Java version (3801L/22K).
// binary legacy signature static O[] toObjectArray(Cl c) { ret toObjectArray((Iterable) c); } static O[] toObjectArray(Iterable c) { L l = asList(c); return l.toArray(new O[l.size()]); }
Began life as a copy of #1001235
download show line numbers debug dex old transpilations
Travelled to 18 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, wtqryiryparv, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1002013 |
| Snippet name: | toObjectArray - could make optimized version for non-concurrent collections |
| Eternal ID of this version: | #1002013/5 |
| Text MD5: | b9751d47ed97c78422e31f4bc0ce4d1b |
| Transpilation MD5: | b6418b7464cc0ce5f6b23e4f72e8584c |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-09-29 23:06:39 |
| Source code size: | 204 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1066 / 2320 |
| Version history: | 4 change(s) |
| Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1003294 - asArray - synonym of toObjectArray + another syntax #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014327 - toArray - synonym of toObjectArray; also allows a type #1032634 - toObjectArray_nonConcurrent - for non-concurrent collections |