indexOfElement

Index of element, no BS.

sizediff_t
indexOfElement
(
T
D
)
(
in T[] arr
,
auto ref in D val
)
if (
is(typeof(arr[0] == val))
)

Meta