The built-in frozendict supports union but not removal. Here is how to drop keys today, which approach costs you immutability, and when the O(n) copy matters.
Share this article
PEP 814Pythonfrozendictimmutabilitypython-3.15
The built-in frozendict supports union but not removal. Here is how to drop keys today, which approach costs you immutability, and when the O(n) copy matters.
Share this article
Comments