carbon-language / carbon-lang

Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
https://github.com/carbon-language/carbon-lang/blob/trunk/README.md
Other
32.31k stars 1.48k forks source link

Add a key-returning callback insert to `Set`. #4072

Closed chandlerc closed 1 week ago

chandlerc commented 1 week ago

This turns out to be super useful now that we have the key_context mechanism and can do much more meaningful heterogeneous lookups, where the stored key can be very different from the lookup key.