News for hackers. Stuff that matters.
Re:Anti-Pattern: Iteratively Building a Collection by evilstreak on Wednesday December 04, 2013 @04:06PM (#6850174)
The signer_keys_and_uids example can be much cleaner using Enumerator#with_object:

signers.map.with_object({}) { |signer, result| result[signer.key_id] = signer.uids }

There are no comments on this comment yet.