has multimethod

Methods

has(container:Any, element:Any) Source: stdlib.ngs:1421
Exactly same as "element in container". It's just more convenient in specific cases.

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] ]