"indexOf" (vector::indexOf / dyn_*::indexOf)

Returns the index of the first element which is equal to the given value. The search starts at the given index.

Synopsis

int vector.indexOf(T value, uint startIdx = 0);

Parameters

Parameter Description
startIdx Start index position
value Value that is searched for

Description

Returns the index of the first element which is equal to the given value. The search starts at the given index. If the value is not found, -1 is returned.

Assignment

Vector / dyn_*