4 ms·
I worked on a Ruby gem to add group_by and aggregate_by functions to collections/enumerables. I finished about 1/2 of the functionality and found the implementa
by mberning 5y ago
I worked on a Ruby gem to add group_by and aggregate_by functions to collections/enumerables. I finished about 1/2 of the functionality and found the implementation to be hateful and thought it would be received poorly. Now seeing this I am second guessing myself.
- gfunk911 5y agoRuby already has group_by, unless I'm misunderstanding what you're saying
- caseyohara 5y agoEnumerable#group_by is in Ruby core https://ruby-doc.org/core-3.0.2/Enumerable.html#method-i-group_by https://ruby-doc.org/core-3.0.2/Enumerable.html#method-i-gro...