Libraryless. Click here for Pure Java version (2472L/16K).
1 | static <A, B extends Iterable<A>> Iterator<A>[] makeIteratorArray(L<B> l) { |
2 | int n = l(l); |
3 | Iterator<A>[] array = new[n]; |
4 | int i = 0; |
5 | fOr (Iterable<A> c : l) |
6 | array[i++] = iterator(c); |
7 | ret array; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029045 |
Snippet name: | makeIteratorArray |
Eternal ID of this version: | #1029045/3 |
Text MD5: | fc0638832ba7a34e964baed31250f716 |
Transpilation MD5: | 36018a5063afd87dd67a3cdc30117873 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-17 17:00:19 |
Source code size: | 214 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 172 / 268 |
Version history: | 2 change(s) |
Referenced in: | [show references] |