iter method

  1. @override
Iter<S> iter()
override

Returns an iterable over the possibly contained value. The iterator yields one value if the result is Ok, otherwise none.

Implementation

@override
@pragma("vm:prefer-inline")
Iter<S> iter() {
  return Iter([ok].iterator);
}