Methods

inΒΆ

in(x:Any, arr:Arr)

Checks whether element x is in array arr
Source: stdlib.ngs:962

x

Needle

arr

Haystack

Returns

Bool

Example

 1 in [1,2,3]  # true
10 in [1,2,3]  # false