HH\Lib\C\find

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

Returns the first value of the given Traversable for which the predicate returns true, or null if no such value is found

namespace HH\Lib\C;

function find<T>(
  Traversable<T> $traversable,
  (function(T):bool) $value_predicate,
): ?T;

Parameters