//arrow-core/arrow.core/elementAtOrNone

elementAtOrNone

common fun <T> Iterable<T>.elementAtOrNone(index: Int): Option<T>

Returns an element as Some(element) at the given index or None if the index is out of bounds of this iterable.

Do you like Arrow?

Arrow Org
<