-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Lines 173 to 178 in 0463e60
| // TODO: reimplement with Array.Copy | |
| public static T[][] chunk<T>(T[] arr, int size) | |
| { | |
| int i = 0; | |
| return arr.GroupBy(s => i++ / size).Select(g => g.ToArray()).ToArray(); | |
| } |