Returns an Option with the first index at which a given element can be found in the list, or None if it is not present.
Option
None
Element to search.
Linked list.
First index of the list element matching the provided value.
Returns an
Option
with the first index at which a given element can be found in the list, orNone
if it is not present.