arrow-optics / arrow.optics.extensions / NonEmptyListIndex / index
index
open fun index(i: Int): Optional<NonEmptyList<A>, A>
Get Optional focus A for a structure S at index i.
Parameters
i - index I to focus into S and find focus A
Return
Optional with a focus in A at given index I.