The elemIndex function returns the index of the first element
in the given list which is equal (by ==) to the query element,
or Nothing if there is no such element. For the result to be
Nothing, the list must be finite.
The elemIndex function returns the index of the first element
in the given list which is equal (by ==) to the query element,
or Nothing if there is no such element.
The elemIndex function returns the index of the first element
in the given list which is equal (by ==) to the query element,
or Nothing if there is no such element. For the result to be
Nothing, the list must be finite.
Find position of a value in a list. Used to change metavar argument
indices during assignment.
reverse is necessary because we are directly abstracting over
the list.