iter method

Iterable<T> iter()

Returns an iterable over the possibly contained value.

The iterable yields one value if the result is Ok, otherwise none.

Implementation

Iterable<T> iter() => isOk ? [_okValue] : const [];