src/Collection/ImmArray.php
public function find(callable $cb)
    {
        foreach ($this->sfa as $i => $el) {
            if ($cb($el, $i, $this)) return $el;
        }
    }
public function find(callable $cb)
    {
        foreach ($this->sfa as $i => $el) {
            if ($cb($el, $i, $this)) return $el;
        }
    }
public function find ( callable $ cb ) { foreach ( $ this -> sfa as $ i => $ el ) { if ( $ cb ( $ el , $ i , $ this ) ) return $ el ; } }
Find a single element

@param callable $cb The test to run on each element
@return mixed The element we found
Find a single element