all

# given [2..5]

$array->all(fun ($value, @args) {
  $value > 1; # 1, true
});

$array->all(fun ($value, @args) {
  $value > 3; # 0; false
});

The all method returns true if all of the elements in the array meet the criteria set by the operand and rvalue. This method returns a Data::Object::Number object.

all(CodeRef $arg1, Any @args) : NumObject

method

5 POD Errors

The following errors were encountered while parsing the POD:

Around line 10:

Unknown directive: =name

Around line 14:

Unknown directive: =usage

Around line 26:

Unknown directive: =description

Around line 32:

Unknown directive: =signature

Around line 36:

Unknown directive: =type