iter method

RIterator<T> iter()

Returns an RIterator over the possibly contained value.

Implementation

RIterator<T> iter() {
  if (v == null) {
    return RIterator(<T>[].iterator);
  } else {
    return RIterator([v!].iterator);
  }
}