iterator

fun <V, E> Result<V, E>.iterator(): Iterator<V>

Returns an Iterator over the possibly contained value. The iterator yields one value if the Result is Ok, otherwise throws NoSuchElementException.