findIndex
nint findIndex<T: any>(const T[] this, in T item, delegate bool(in T left, in T right) 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)
equals
Returns true when an array item matches item.
nuint
sizeof(T)
Generated with campc v0.6.0-preview.1+4dde68eca4014e9b19e7d7ad0fdae6b2036be640.