IteratorResultExtension<T, E extends Object> extension
Methods
-
tryCollect(
) → Result< List< T> , E> -
Available on Iter<
Transforms an iterator into a collection, short circuiting if a Err is encountered.Result< , provided by the IteratorResultExtension extensionT, E> > -
tryFind(
bool f(T)) → Result< Option< T> , E> -
Available on Iter<
Applies function to the elements of iterator and returns the first true result or the first Err element.Result< , provided by the IteratorResultExtension extensionT, E> > -
tryFold<
U> (U initial, U f(U, T)) → Result< U, E> -
Available on Iter<
An iterator method that applies a function producing a single value, returns Err is encounted.Result< , provided by the IteratorResultExtension extensionT, E> > -
tryForEach(
void f(T)) → Result< (), E> -
Available on Iter<
An iterator method that applies a function, stopping at the first Err and returning that Err.Result< , provided by the IteratorResultExtension extensionT, E> > -
tryReduce(
T f(T, T)) → Result< Option< T> , E> -
Available on Iter<
Reduces the elements to a single one by repeatedly applying a reducing operation. If a Err is encounted it is returned.Result< , provided by the IteratorResultExtension extensionT, E> >