public function splice(array $array, $offset, $length = 1, $replacements = null): array
    {
        $arguments = func_get_args();
        $replacements = array_slice($arguments, 3);
        array_splice($array, $offset, $length, $replacements);
        return $array;
    }