HH\Lib\C\findx
Returns the first value of the given Traversable for which the predicate returns true, or throws if no such value is found
namespace HH\Lib\C;
function findx<T>(
Traversable<T> $traversable,
(function(T): bool) $value_predicate,
): T;
Time complexity: O(n) Space complexity: O(1)
Parameters
Traversable<T>
$traversable
(function(T): bool) $value_predicate
Returns
T