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

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

        return $this->filter($callback)->last();
    }
public function last ( callable $ callback = null ) { if ( null === $ callback ) { return end ( $ this -> items ) ; } return $ this -> filter ( $ callback ) -> last ( ) ; }
Get the last item.
Get the last item .