2 ms·
I was a fan of list.group_by(&:itself).transform_values(&:count) ...but I'll be very happy to replace that with #tally!
by faitswulff 7y ago
I was a fan of
list.group_by(&:itself).transform_values(&:count)
...but I'll be very happy to replace that with #tally!