klyn.collections.ArraySync.lastIndexOf
method
public native lastIndexOf(item as T, start as Int = -1) as Int
Description

Returns the last index of the given element.

import klyn.collections

values = fs:[10, 20, 10]
print(values.lastIndexOf(10))  # 2
Parameters
ParameterDescription
itemThe element to search for.
startZero-based index where the reverse search starts. -1 starts at the end.
Returns

Last matching index, or -1.