List.lastIndexOf

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

interface List(T)
long
lastIndexOf
@nogc
()

Parameters

elem
Type: T

element to search for

Return Value

Type: long

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

Meta