Crate atools

Source
Expand description

a collection of useful features for working with arrays

Modules§

pervasive
pervasive array operations.
prelude
The prelude. You should

Traits§

Array
Turn a tuple into a array. Implemented for N≤32
ArrayTools
Array tools.
Chunked
🍪
CollectArray
Collect an iterator into a array.
Couple
Couple two arrays together.
DropFront
Remove the first element of a array. The opposite of Trunc.
Flatten
Flatten arrays.
Join
Join scalars together.
Pop
Pop parts of a array. Use
Slice
Slicing arrays up.
Split
Splitting arrays up.
Trunc
Removes the last element of a array. The opposite of DropFront.
Tuple
Turn a array into a tuple. Implemented for N≤32

Functions§

range
Creates a array of indices.
splat
Convenience function for when clonage is required; prefer [T; N] if possible. Also useful if N should be inferred.