]> Cypherpunks.ru repositories - gostls13.git/commit
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>
Wed, 26 Jul 2023 21:40:38 +0000 (21:40 +0000)
commit598958f0f247fa24b8ed4dfcd454a1958f212666
tree8213316f12e84cb047504d79616151f834b04ca5
parent3afa5daabd6245be0c03b6e666f93835e32d7f7c
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>
api/go1.21.txt
src/maps/maps.go
src/maps/maps_test.go