Libraryless. Click here for Pure Java version (45L/1K).
static O[] simplyLinkedListToObjectArray(int n, SimplyLinkedList sll) { O[] array = new O[n]; for i to n: { array[i] = sll.head; sll = sll.tail; } ret array; }
Began life as a copy of #1023798
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023800 |
Snippet name: | simplyLinkedListToObjectArray |
Eternal ID of this version: | #1023800/1 |
Text MD5: | 069fb4c14b1ea4d02cdf032157cb9875 |
Transpilation MD5: | 81b9adab32eda4b283dab4915d68acf3 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-09 03:41:09 |
Source code size: | 182 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 207 / 279 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |