findIndex
nint findIndex<T>(const T[] this, in T item, delegate bool(in T left, in T right, sizeof(T)) equals, sizeof(T))Finds the first matching item in an array.
Returns
The zero-based index of the first match, or -1 when no match exists.
Parameters
const
this
in T
item
The item to find.
delegate bool(in T left, in T right, sizeof(T))
equals
Returns true when an array item matches item.
nuint
sizeof(T)
Generated with campc 0.14.0-preview.1.