Compare commits

...

1 Commits

Author SHA1 Message Date
cf9c73aa4a v0.0.120 2023-05-24 21:42:10 +02:00

View File

@@ -433,3 +433,10 @@ func ArrConcat[T any](arr ...[]T) []T {
}
return r
}
// ArrCopy does a shallow copy of the 'in' array
func ArrCopy[T any](in []T) []T {
out := make([]T, len(in))
copy(out, in)
return out
}