Open JonasMuehlmann opened 2 years ago
Iterators with intermediate backing containers (e.g. CopyIfIterator()
) should probably be implemented as []T
or []Tuple[TKey, TValue]
no matter the container they are created from.
Could iterators implement e.g. is_reversible()
and to_reverse()
functions to solve the problem of only allowing the base iterator type as arguments? In that case, the base iterator could be casted up to the type the concrete iterator is declared as.
USE TDD Adapt other standard library io interfaces.
Iterator adapter:
SplitBy
SplitN
SplitNth
Zip
Cycle