src/Primitive/Container/Container.php
public function exceptIndex($nth)
    {
        $nth = $this->getIntegerable($nth);

        if ($this->isEmpty() || $nth >= $this->length())
        {
            throw new OffsetNotExistsException('Offset: '. $nth .' not exist');
        }

        return $this->copy()->forget($this->keys()->get($nth));
    }
public function exceptIndex($nth)
    {
        $nth = $this->getIntegerable($nth);

        if ($this->isEmpty() || $nth >= $this->length())
        {
            throw new OffsetNotExistsException('Offset: '. $nth .' not exist');
        }

        return $this->copy()->forget($this->keys()->get($nth));
    }
Return copy of Container except given index.

@param int|IntegerContract $nth
@throws OffsetNotExistsException
@return Container