Function pulp::as_arrays

source ·
pub fn as_arrays<const N: usize, T>(slice: &[T]) -> (&[[T; N]], &[T])
Expand description

Splits a slice into chunks of equal size (known at compile time).

Returns the chunks and the remaining section of the input slice.