Breaking Down and Explaining Type Parameters
slices package function signatures
The slices.Clone function is pretty simple: it makes a copy of a slice of any type.
func Clone[S ~[]E, E any](s S) S {
return append(s[:0:0], s...)
}
\
This wor...