General

Profile

crashtech (Carlos Silva)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

09/21/2020

04:57 PM Ruby Bug #17181 (Closed): Hash with default block breaks after transforming values
I found a problem with Hashes that use a default proc.
```ruby
x = Hash.new { |h, k| h[k] = [] }
x[:a] << 1
x[:b] << 2
```
I expected that transforming the values as follows:
```ruby
y = x.transform_values { |arr| arr.map(&...
crashtech (Carlos Silva)

Also available in: Atom