none multimethod

Methods

none(e:Eachable1, predicate:Fun) Source: stdlib.ngs:1581
Check that there is no element in e that satisfies the given predicate. Exactly same as not(any(e, predicate)) .

Returns

Bool

Example

[0,1,2].none(X>2)  # true
[0,1,2].none(X<2)  # false
none(b:Box, predicate:Any) Source: stdlib.ngs:2760
Test Box value

Example

Box(5).none(Int)      # false
Box(5).none(Str)      # true
EmptyBox().none(Int)  # true