piglet icon indicating copy to clipboard operation
piglet copied to clipboard

Suggestion: alias 'group' as 'group_by'

Open dvrensk opened this issue 16 years ago • 1 comments

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.

dvrensk avatar Jan 15 '10 17:01 dvrensk

Not a bad idea. Doesn't cost anything with aliases, so why not?

iconara avatar Jan 15 '10 18:01 iconara