HH\Lib\C\every

This API is part of the Hack Standard Library, not HHVM itself.
Facebook Engineer?

This function is available as C\every() in Facebook's www repository.

Returns true if the given predicate returns true for every element of the given Traversable

Description

namespace HH\Lib\C;

function every<T>(
  Traversable<T> $traversable,
  ?(function(T):bool) $predicate = null,
): bool;

If no predicate is provided, it defaults to casting the element to bool.

Parameters