public function removeLast(): self
    {
        $tmpArray = $this->getArray();

        \array_pop($tmpArray);

        return static::create(
            $tmpArray,
            $this->iteratorClass,
            false
        );
    }
public function removeLast(): self
    {
        $tmpArray = $this->getArray();

        \array_pop($tmpArray);

        return static::create(
            $tmpArray,
            $this->iteratorClass,
            false
        );
    }
public function removeLast ( ) : self { $ tmpArray = $ this -> getArray ( ) ; \ array_pop ( $ tmpArray ) ; return static :: create ( $ tmpArray , $ this -> iteratorClass , false ) ; }
Remove the last value from the current array.

@return static
<p>(Immutable)</p>
Remove the last value from the current array .