Issue #12512 has been updated by Yukihiro Matsumoto.

Assignee changed from Kenta Murata to Yukihiro Matsumoto

`map_values`, `map_keys` and `map_pairs` seems consistent.

In addition, we are considering adding a method to create a hash from an enumerable in a similar way to `map_pairs` or `map_kv`.  From my point of view, adding `map_kv` to Enumerable is acceptable, but `map_pairs` looks weird. You may feel differently, and if so, what should be the name of a method we are going to add to Enumerable?

Matz.



----------------------------------------
Feature #12512: Import Hash#transform_values and its destructive version from ActiveSupport
https://bugs.ruby-lang.org/issues/12512#change-60103

* Author: Kenta Murata
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
I think value transformation is a fundamental feature of Hash.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>