Issue #8951 has been updated by behrangsa (Behrang Saeedzadeh).


How about having a construct similar to `map.with_index`? For example `map.to_has` or `map.hashify`:

```
hash = { ... }
hash.map.to_hash do |e|
 convert(e)
end
```

or

```
hash = { ... }
hash.map.hashify do |e|
 convert(e)
end
```
----------------------------------------
Feature #8951: Please add a hash-to-hash alternative of the map method to Hash
https://bugs.ruby-lang.org/issues/8951#change-42438

Author: behrangsa (Behrang Saeedzadeh)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 


Please see this thread: https://twitter.com/behrangsa/status/382670159086776323



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