added reference to golang.org/x/exp/slices

Nate 2023-01-10 13:59:08 -05:00
parent a3f3cfa3d0
commit 33793edcc2

@ -1,5 +1,7 @@
Since the introduction of the ` append ` built-in, most of the functionality of the ` container/vector ` package, which was removed in Go 1, can be replicated using ` append ` and ` copy `.
Since the introduction of generics, generic implementations of several of these functions are available in the [`golang.org/x/exp/slices`](https://pkg.go.dev/golang.org/x/exp/slices) package.
Here are the vector methods and their slice-manipulation analogues:
#### AppendVector