whereErr method

Iterable<Err<T>> whereErr()

Filters for Err elements, returning an iterable of the Err instances.

Implementation

Iterable<Err<T>> whereErr() =>
    where((e) => e.isErr()).map((e) => e.err().unwrap());