has_no multimethod

Methods

has_no(container:Any, element:Any)deprecated Source: stdlib.ngs:67
Deprecated in favor of a none(container, pattern). Exactly same as "element not in container". It's just more convenient in specific cases.

Returns

Bool

Example

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