diff options
author | Ian Lance Taylor <iant@golang.org> | 2023-02-01 13:47:48 -0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-02-03 18:22:53 +0000 |
commit | a96487613e2703d1eb7e12c51647e36973df9fd0 (patch) | |
tree | 12bdecd1c158d000048aa8da1fcd18c9c0e03617 /api | |
parent | 10643b744d91544fd61d5131b52c89e1c3caabeb (diff) | |
download | go-git-a96487613e2703d1eb7e12c51647e36973df9fd0.tar.gz |
maps: new package
This copies x/exp/maps into the standard library (except for the Clear
function which is now available as the clear builtin.)
Fixes #57436
Change-Id: I30dd470c2f7ae34c7c82b4c1025a7582d61fabaa
Reviewed-on: https://go-review.googlesource.com/c/go/+/464343
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'api')
-rw-r--r-- | api/next/57436.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/api/next/57436.txt b/api/next/57436.txt new file mode 100644 index 0000000000..c05654f61b --- /dev/null +++ b/api/next/57436.txt @@ -0,0 +1,7 @@ +pkg maps, func Clone[$0 interface{ ~map[$1]$2 }, $1 comparable, $2 interface{}]($0) $0 #57436 +pkg maps, func Copy[$0 interface{ ~map[$2]$3 }, $1 interface{ ~map[$2]$3 }, $2 comparable, $3 interface{}]($0, $1) #57436 +pkg maps, func DeleteFunc[$0 interface{ ~map[$1]$2 }, $1 comparable, $2 interface{}]($0, func($1, $2) bool) #57436 +pkg maps, func EqualFunc[$0 interface{ ~map[$2]$3 }, $1 interface{ ~map[$2]$4 }, $2 comparable, $3 interface{}, $4 interface{}]($0, $1, func($3, $4) bool) bool #57436 +pkg maps, func Equal[$0 interface{ ~map[$2]$3 }, $1 interface{ ~map[$2]$3 }, $2 comparable, $3 comparable]($0, $1) bool #57436 +pkg maps, func Keys[$0 interface{ ~map[$1]$2 }, $1 comparable, $2 interface{}]($0) []$1 #57436 +pkg maps, func Values[$0 interface{ ~map[$1]$2 }, $1 comparable, $2 interface{}]($0) []$2 #57436 |