List.indexOf

Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.

interface List(T)
long
indexOf
@nogc
()

Parameters

elem
Type: T

element to search for

Return Value

Type: long

the index of the first occurrence of the specified element or -1 if this list does not contain the element

Meta