Issue #12512 has been updated by Yukihiro Matsumoto.


Ok, I will introduce `transform_values` (not `map_v` nor `map_values`).

I wanted a `Hash` generation method in `Enumerable` (e.g. `map_kv`), and the proposed method name to be consistent with the name.
But I found out that they are not really "map" functions, so they shouldn't be named `map_*`. So I gave up the idea of `map_v` and `map_kv` altogether. The original name `transform_values` describes the intention better.

Matz.


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

* 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>