any

# given [2..5]

$array->any(fun ($value) {
  $value > 5; # 0; false
});

$array->any(fun ($value) {
  $value > 3; # 1; true
});

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

any(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