Methods

anyΒΆ

any(e:Eachable1, predicate:Any)

Check whether there is any element in arr that satisfies the given predicate. TODO: Make it work on anything with Eachable2 too.
Source: stdlib.ngs:992

e

The items to check

predicate

Test function

Returns

Bool

Example

[1,2,10].any(F(elt) elt > 5)   # true
[1,2,10].any(F(elt) elt > 15)  # false