Module iter

Source
Expand description

Iterator utilities.

Structs§

Differences
Converts a sequence of values into a sequence of differents.
RandSubsample
Iterator over exactly num_samples random sub-samples from a fixed-length iterator.
SizedChain
Chain wrapper that implements ExactSizeIterator.
SplitChunksByLength
Iterator that splits a sequence into chunks based on an iterator of chunk lengths.

Enums§

PartialMaxError
Reason that the maximum does not exist.

Traits§

ArgMaxBy
The index of a maximal element in a collection, according to a comparison function.
PartialMax
Maximum of a collection of items where the maximum might not exist.