Copy¶
func Copy[T any](slice []T) []T
Copy receives a slice of type T and returns a copy.
Deprecated: prefer slices.Clone(slice) from the standard library.
func Copy[T any](slice []T) []T
Copy receives a slice of type T and returns a copy.
Deprecated: prefer slices.Clone(slice) from the standard library.