Issue #12512 has been updated by Marc-Andre Lafortune.


`map_values` is good, succinct and clear. 'v' is an unclear abbreviation, made worse by the existence of other methods with the long form like `values_at`.

I guess I'm just repeating what Jan and Rodrigo said...


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

* Author: Kenta Murata
* Status: Closed
* Priority: Normal
* Assignee: Kenta Murata
----------------------------------------
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>