HH\Lib\C\find

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

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

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

Description

namespace HH\Lib\C;

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

Parameters