std.collections.Stack.FindIndex - nitrologic/monkey2 GitHub Wiki

std::std.collections.std.collections.Stack.FindIndex

Method FindIndex:monkey:monkey.types.Int( value:T,start:monkey:monkey.types.Int=0 )

Finds the index of the first matching value in the stack.

In debug builds, a runtime error will occur if start is less than 0 or greater than the length of the stack.

Parameters
value value The value to find.
start start The starting index for the search.