Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Fully qualified name: Std.Arrays.Chunks
function Chunks<'T>(chunkSize : Int, array : 'T[]) : 'T[][]
Splits an array into multiple parts of equal length.
The length of each chunk. Must be positive.
The array to be split in chunks.
A array containing each chunk of the original array.
Note that the last element of the output may be shorter
than chunkSize
if Length(array)
is not divisible by chunkSize
.