"Flatmap" over an Iterator of Iterators, exposing the inner Iterator along the way (as its true type)
"value" type of resulting Iterator
type of inner Iterator
Iterator of Iterators
Group one sorted iterator with another, emitting an iterator of the latter's elements for each of the former's
Wrap a BufferedReader and emit lines.
Given an Iterator of Ints, collapse contiguous "ranges" of integers that are each 1 greater than their predecessor.
Run-length encode an input iterator, replacing contiguous runs of identical elements with pairs consisting of the first element in the run and the number of elements observed.
Sample elements from an iterator into an Array
Interface for implementing BufferedIterators following a common pattern: the
hasNext implementation must
actually compute the next element (or return a sentinel that implies that one doesn't exist), and should therefore
cache that element to serve
For each element in an input Iterator, emit the sequence of elements from the current one to the next
value (or the end of the iterator, if no more sentinels follow the current element).
Given an iterator and a predicate function, emit iterators containing maximal runs of sequential elements that all satisfy the predicate, or individual elements that do not.