EdvardM (Edvard Majakari)
- Login: EdvardM
- Email: edvard.majakari@leonidasoy.fi
- Registered on: 11/23/2011
- Last sign in: 11/23/2011
Issues
open | closed | Total | |
---|---|---|---|
Assigned issues | 0 | 0 | 0 |
Reported issues | 0 | 1 | 1 |
Activity
11/23/2011
- 10:18 PM Ruby master Feature #5662: inject-accumulate, or Haskell's mapAccum*
- Ok.. I'll give real example to show what is typical use case for us:
hash = MyDatabaseObject.get_all.infuse({}) { |h... - 04:17 PM Ruby master Feature #5662: inject-accumulate, or Haskell's mapAccum*
- I also noticed mapAccum* is quite different.
I have to agree with Rodrigo. (each_)with_object seems to really do ... - 05:24 AM Ruby master Feature #5662 (Rejected): inject-accumulate, or Haskell's mapAccum*
- with Ruby, we often use this idiom to build a hash out of something:
new_hash = enum.inject({}) { |h, thing| h[com...
Also available in: Atom