Expand description
Functions and adaptors for iterators.
Modules§
- bit_
distributor - Contains
BitDistributor
, which helps generate tuples exhaustively. - comparison
- Functions that compare adjacent iterator elements.
- iterator_
cache - Contains
IteratorCache
, which remembers values produced by an iterator.
Structs§
- Iter
Windows - Generates sliding windows of elements from an iterator.
- Nonzero
Values - Generates all the nonzero values of a provided iterator.
- Thue
Morse Sequence - An iterator that generates the Thue-Morse sequence. See
thue_morse_sequence
for more information.
Functions§
- count_
is_ at_ least - Returns whether an iterator returns at least some number of values.
- count_
is_ at_ most - Returns whether an iterator returns at most some number of values.
- first_
and_ last - Returns the first and last elements of an iterator, or
None
if it is empty. - is_
constant - Returns whether all of the values generated by an iterator are equal.
- is_
unique - Returns whether an iterator never returns the same value twice.
- iter_
windows - Returns windows of $n$ adjacent elements of an iterator, advancing the window by 1 in each iteration. The values are cloned each time a new window is generated.
- matching_
intervals_ in_ iterator - Groups elements of an iterator into intervals of adjacent elements that match a predicate. The endpoints of each interval are returned.
- nonzero_
values - Returns an iterator that generates all the nonzero values of a provided iterator.
- prefix_
to_ string - Converts a prefix of an iterator to a string.
- thue_
morse_ sequence - Returns an iterator that generates the Thue-Morse sequence.