Libraryless. Click here for Pure Java version (2472L/16K).
static <A, B extends Iterable<A>> Iterator<A>[] makeIteratorArray(L<B> l) { int n = l(l); Iterator<A>[] array = new[n]; int i = 0; fOr (Iterable<A> c : l) array[i++] = iterator(c); ret array; }
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: | 170 / 264 |
Version history: | 2 change(s) |
Referenced in: | [show references] |