all multimethod

Methods

all(e:Eachable1, pattern:Any=method) Source: stdlib.ngs:2555
Check whether all elements in arr satisfy the given pattern.

Parameters

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

Returns

Bool

Example

[1,2,3].all(X<10)   # true
[1,2,10].all(X>5)   # false
all(e:Eachable2, predicate:Fun) Source: stdlib.ngs:3297
Checks whether all of the key-value pairs satisfies the predicate: predicate(k, v)

Returns

Bool