crashtech (Carlos Silva)
- Login: crashtech
- Email: carlinhus.fsilva@gmail.com
- Registered on: 09/21/2020
- Last sign in: 09/21/2020
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(&...