divideByElemNumber

Divides an array: makes a new array of arrays containing elements from source array. Each subarray contains specified number of elements.

nothrow pure @safe
T[]
divideByElemNumber
(
T
)
(
T arr
,
size_t n
)
if (
std.traits.isArray!T
)

Parameters

arr T

Source array.

n size_t

Number of elements in each new subarray.

Meta