3 ms·
stuff like this always makes me miss Ruby's even-shorter-hand version though :) groceriesByDepartment.mapValues(&:count) # not ruby, but meh
by Groxx 9y ago
stuff like this always makes me miss Ruby's even-shorter-hand version though :)
groceriesByDepartment.mapValues(&:count) # not ruby, but meh