]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.21] maps: remove Keys and Values
authorIan Lance Taylor <iant@golang.org>
Wed, 26 Jul 2023 18:08:03 +0000 (11:08 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 27 Jul 2023 22:20:27 +0000 (22:20 +0000)
commitb25266c58debb831cd880a7372b197466e75b833
tree76a39aac561dd2b2b60bb92c8f9c2c739bf10591
parent1ea8d38517b058851bf6118f1bd9a317db9ed702
[release-branch.go1.21] maps: remove Keys and Values

Preserve the names in case we want them to return an iterator.
Keep the efficient runtime implementations for now,
as we will probably want them under some name, perhaps KeysSlice
and ValuesSlice.

Fixes #61538

Change-Id: I6b03010bf071fb4531cb2f967dad46425962fcb8
Reviewed-on: https://go-review.googlesource.com/c/go/+/513476
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-on: https://go-review.googlesource.com/c/go/+/513715
Run-TryBot: Russ Cox <rsc@golang.org>
api/go1.21.txt
src/maps/maps.go
src/maps/maps_test.go