mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
added reference to golang.org/x/exp/slices
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user