src/precore/util/Iterables.php
public static function find(IteratorAggregate $iterable, callable $predicate, $defaultValue = null)
    {
        return Iterators::find(Iterators::from($iterable->getIterator()), $predicate, $defaultValue);
    }
public static function find(IteratorAggregate $iterable, callable $predicate, $defaultValue = null)
    {
        return Iterators::find(Iterators::from($iterable->getIterator()), $predicate, $defaultValue);
    }
Returns the first element in iterable that satisfies the given predicate. If there is no such an element,
it returns $defaultValue.

@param IteratorAggregate $iterable
@param callable $predicate
@param null $defaultValue
@return mixed