| Extracted from Pike v7.8 release 700 at 2013-06-08.

[Top]
Array

# Method Array.all()

Method all

  `int(0..1) all(array a, function(int(0..0):mixed) predicate, mixed ... extra_args)`

Description

  Returns 1 if all of the elements in a fulfills the requirement predicate ( a [i], @extra_args ), otherwise 0. The predicate should return non-zero for an element that meets the requirements and zero for those that do not.

Example

      Array.all( ({ 2, 4, 6, 8 }), `<, 17 )

See also

  any , has_value