Methods

hasΒΆ

has(container:Any, element:Any)

Exactly same as "element in container". It's just more convenient in specific cases.
Source: stdlib.ngs:802

Returns

Bool

Example

[1,2,3].has(2)  # true
[[1,2,3], [1,20,30], [100,200,300]].filter(X.has(1))  # [ [1,2,3], [1,20,30] ]