src/Peach/Util/HashMap.php
public function remove($key)
    {
        $index = $this->getIndexOf($key);
        if (!isset($this->table[$index])) {
            return;
        }
        foreach ($this->table[$index] as $i => $entry) {
            if ($entry->keyEquals($key, $this->equator)) {
                array_splice($this->table[$index], $i, 1);
                $this->modFlag = true;
                return;
            }
        }
        return;
    }
public function remove($key)
    {
        $index = $this->getIndexOf($key);
        if (!isset($this->table[$index])) {
            return;
        }
        foreach ($this->table[$index] as $i => $entry) {
            if ($entry->keyEquals($key, $this->equator)) {
                array_splice($this->table[$index], $i, 1);
                $this->modFlag = true;
                return;
            }
        }
        return;
    }
指定されたキーのマッピングを削除します.
@param mixed $key キー