public native operator in(item as T) as Boolean
Returns true when the array contains the given element.
import klyn.collections values as Int[] = Int[2] values[0] = 4 values[1] = 8 print(8 in values) # true
| Parameter | Description |
|---|---|
item | Element to search. |
True when a matching element is found.