src/Map.php
private function delete(int $position)
    {
        $pair  = $this->pairs[$position];
        $value = $pair->value;

        array_splice($this->pairs, $position, 1, null);
        $this->checkCapacity();

        return $value;
    }
private function delete(int $position)
    {
        $pair  = $this->pairs[$position];
        $value = $pair->value;

        array_splice($this->pairs, $position, 1, null);
        $this->checkCapacity();

        return $value;
    }
private function delete ( int $ position ) { $ pair = $ this -> pairs [ $ position ] ; $ value = $ pair -> value ; array_splice ( $ this -> pairs , $ position , 1 , null ) ; $ this -> checkCapacity ( ) ; return $ value ; }
Completely removes a pair from the internal array by position. It is
important to remove it from the array and not just use 'unset'.
Completely removes a pair from the internal array by position . It is important to remove it from the array and not just use unset .