piglet
piglet copied to clipboard
Suggestion: alias 'group' as 'group_by'
Rails, or ActiveSupport, added Enumerable#group_by which is a perfect analogy of the Pig GROUP operator. Ruby 1.8.7 took a cue from Rails, so now group_by is available in MRI Ruby. To me, it makes sense to be able to say group_by in Piglet too.
Not a bad idea. Doesn't cost anything with aliases, so why not?