MyUtilityExtensionIterableElementAtOrElse<E> extension

on

Methods

elementAtOrElse(int index, {E orElse(int index)?}) → E

Available on Iterable<E>, provided by the MyUtilityExtensionIterableElementAtOrElse extension

Returns an element at the given index or the result of calling the orElse function if the index is out of bounds.