Libraryless. Click here for Pure Java version (45L/1K).
1 | static O[] simplyLinkedListToObjectArray(int n, SimplyLinkedList sll) {
|
2 | O[] array = new O[n]; |
3 | for i to n: {
|
4 | array[i] = sll.head; |
5 | sll = sll.tail; |
6 | } |
7 | ret array; |
8 | } |
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: | 410 / 518 |
| Referenced in: | [show references] |