elementAtOption method

Option<T> elementAtOption(
  1. int index
)

Get the element at the given index as an Option. If the element does not exist, it will return None.

Implementation

Option<T> elementAtOption(int index) => tryCatch(() => elementAt(index));