-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
FrozenDueToAgeLanguageChangeSuggested changes to the Go languageSuggested changes to the Go languagev2An incompatible library changeAn incompatible library change
Milestone
Description
It's quite a common case to use maps to ensure values are unique. I wondered if the hashmap implementation could expose it's keys and values directly via a `keys` and `vals` builtin, instead of creating a slices, iterating over the map and filling the slice. It would also help to avoid creating unnecessary gargabe when only a reference is obtained.
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeLanguageChangeSuggested changes to the Go languageSuggested changes to the Go languagev2An incompatible library changeAn incompatible library change