elementIndex

Given an array and a reference to an element inside it, returns its index. The reverse operation of indexing an array.

size_t
elementIndex
(
T
)
(
in T[] arr
,
in ref T element
)

Meta