all multimethod

Methods

all(e:Eachable, predicate:Any) Source: stdlib.ngs:1702
Check whether all elements in arr satisfy the given predicate.

Parameters

eThe items to check
predicateTest function

Returns

Bool

Example

[1,2,3].all(X<10)   # true
[1,2,10].all(X>5)   # false