lib/core/facets/enumerable/frequency.rb in facets-2.4.5 vs lib/core/facets/enumerable/frequency.rb in facets-2.5.0

- old
+ new

@@ -1,10 +1,10 @@ module Enumerable # Generates a hash mapping each unique symbol in the array # to the absolute frequency it appears. # - # CREDIT: Brian Schröder + # CREDIT: Brian Schröder def frequency #probs = Hash.new(0) #each do |e| # probs[e] += 1