Iter$IterResultExtension<T, E extends Object> extension

on
  • Iter<Result<T, E>>

Methods

tryCollect() → Result<List<T>, E>

Available on Iter<Result<T, E>>, provided by the Iter$IterResultExtension extension

Transforms an iterator into a collection, short circuiting if a Err is encountered.
tryFind(bool f(T)) → Result<T?, E>

Available on Iter<Result<T, E>>, provided by the Iter$IterResultExtension extension

Applies function to the elements of iterator and returns the first true result or the first Err element.
tryFindOpt(bool f(T)) → Result<Option<T>, E>

Available on Iter<Result<T, E>>, provided by the Iter$IterResultExtension extension

Applies function to the elements of iterator and returns the first true result or the first Err element.
tryFold<U>(U initial, U f(U, T)) → Result<U, E>

Available on Iter<Result<T, E>>, provided by the Iter$IterResultExtension extension

An iterator method that applies a function producing a single value, returns Err is encountered.
tryForEach(void f(T)) → Result<(), E>

Available on Iter<Result<T, E>>, provided by the Iter$IterResultExtension extension

An iterator method that applies a function, stopping at the first Err and returning that Err.
tryReduce(T f(T, T)) → Result<T?, E>

Available on Iter<Result<T, E>>, provided by the Iter$IterResultExtension extension

Reduces the elements to a single one by repeatedly applying a reducing operation. If a Err is encountered it is returned.
tryReduceOpt(T f(T, T)) → Result<Option<T>, E>

Available on Iter<Result<T, E>>, provided by the Iter$IterResultExtension extension

Reduces the elements to a single one by repeatedly applying a reducing operation. If a Err is encountered it is returned.