Expand description
Functions for working with slices.
Structs§
- Exhaustive
Slice Permutations - Generates every permutation of a slice.
Functions§
- exhaustive_
slice_ permutations - Generates every permutation of a slice.
- min_
repeating_ len - Given a slice with nonzero length $\ell$, returns the smallest $n$ such that the slice consists of $n/\ell$ copies of a length-$\ell$ subslice.
- slice_
leading_ zeros - Counts the number of zeros that a slice starts with.
- slice_
move_ left - Given a slice and an starting index, copies the subslice starting from that index to the beginning of the slice.
- slice_
set_ zero - Sets all values in a slice to 0.
- slice_
test_ zero - Tests whether all values in a slice are equal to 0.
- slice_
trailing_ zeros - Counts the number of zeros that a slice ends with.