You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: values.go
    path of file: ./repos/pie/v2
    
    the code of the file until where you have to start completion: package pie

// Values returns the values in the map.
//
// Due to Go's randomization of iterating maps the order is not deterministic.
func Values[K
    
func Values[K comparable, V any](m map[K]V) []V {
	// Avoid allocation
	l := len(m)
	if l == 0 {
		return nil
	}

	i := 0
	keys := make([]V, len(m))
	for _, value := range m {
		keys[i] = value
		i++
	}

	return keys
}