static <A> LL<A> groupInFixedSizeRows(L<A> l, int rowSize) { new LL<A> matrix; for (int i = 0; i < l(l); i += rowSize) matrix.add(subList(l, i, i+rowSize)); ret matrix; } static <A> LL<A> groupInFixedSizeRows(A[] l, int rowSize) { ret groupInFixedSizeRows(asList(l), rowSize); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008611 |
Snippet name: | groupInFixedSizeRows - transform list into list of lists |
Eternal ID of this version: | #1008611/3 |
Text MD5: | 68ee8eb1acce27877f2dceed43c01dd5 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-25 16:57:00 |
Source code size: | 300 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 541 / 558 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |