public function first(callable $callback = null)
    {
        if (null === $callback) {
            return reset($this->items);
        }

        return $this->filter($callback)->first();
    }
public function first(callable $callback = null)
    {
        if (null === $callback) {
            return reset($this->items);
        }

        return $this->filter($callback)->first();
    }
public function first ( callable $ callback = null ) { if ( null === $ callback ) { return reset ( $ this -> items ) ; } return $ this -> filter ( $ callback ) -> first ( ) ; }
Get the first time and reset and rewind.
Get the first time and reset and rewind .