has multimethod

Methods

has(container:Any, element:Any)deprecated Source: stdlib.ngs:56
Deprecated in favor of a any(container, pattern). 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] ]