dontfidget (Andrew Brown)
- Login: dontfidget
- Email: andrew@dontfidget.com
- Registered on: 06/11/2014
- Last sign in: 07/08/2014
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 0 | 1 |
Activity
06/11/2014
-
12:08 AM Ruby Feature #9929 (Open): add with_default method to Hash
- I would like to be able to write this:
~~~
people.group_by(:first_name).with_default { [] }
~~~
instead of:
~~~
hash = people.group_by(:first_name)
hash.default_proc = proc { [] }
~~~
or, perhaps:
~~~
people.group_by...