Edvard Majakari

  • Email:
  • Registered on: 11/23/2011
  • Last connection: 11/23/2011

Activity

Reported issues: 1

11/23/2011

10:18 PM ruby-trunk 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-trunk 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-trunk 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