diff --git a/SliceTricks.md b/SliceTricks.md index 077278ab..eaedc6bd 100644 --- a/SliceTricks.md +++ b/SliceTricks.md @@ -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