Skip to content

Conversation

@andrykonchin
Copy link
Contributor

Changes:

  • add new method Hash#transform_keys!

Related discussion - #16271 (comment).

@andrykonchin andrykonchin force-pushed the ak/add-hash-transform-keys-bang branch from 370f0d6 to f79ec79 Compare October 27, 2025 14:31
initialize_dup_entries(transformed_hash) # we need only to copy the buffer
initialize_copy_non_entries_vars(transformed_hash)
self
end
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably makes sense to move the copying logic into a new method #replace, similar to Hash#replace in Ruby.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant