Site under construction! :3

all(func: function = (el => el)) ξ―‚

1.0.0 Boolean

Definitionξ―‚
(method) func array.all(func: function = (el => el)) -> bool:
    for element in self:
        return false if not func(element)
    return true

Returns true if all elements of the array return true given a specified function, else it returns false.

Pigeonξ―‚
> arr = [0, 1, 2, 3, 4]
> arr.all(el => el > 3)
false

Parametersξ―‚

funcξ―‚

1.0.0 Function Optional

A function object.

If no function is declared, it defaults to checking if items are truthy.