Skip to content

iterators

Module

Contains functions and filters to work with iterators.

Exports

buffer Buffers an iterator into a static list that can be enumerated multiple times without changing.
count Counts the elements in the input iterator if the iterator supports it.
first Returns the first/next element in the input iterator.
inits Returns an iterator of all initial segments of the input.
join Joins two iterators on a key.
max Takes an iterator and returns the highest value.
min Takes an iterator and returns the lowest value.
reverse Returns an iterator in the opposite direction.
sum Sums all numbers in the input iterator.
tails Tails returns an iterator of all final segments of the input, longest first.