any multimethod

Methods

any(e:Eachable1, pattern:Any=method) Source: stdlib.ngs:2537
Check whether there is any element in e that satisfies the given pattern.

Parameters

eThe items to check
patternTest function or anything else acceptable by (=~), defaults to Bool.constructors

Returns

Bool

Example

[1,2,10].any(F(elt) elt > 5)   # true
[1,2,10].any(F(elt) elt > 15)  # false
any(e:Eachable2, predicate:Fun) Source: stdlib.ngs:3282
Checks whether any of the key-value pairs satisfies the predicate: predicate(k, v)

Returns

Bool