From: "Joseph E. Savard" Date: 2010-07-21T00:19:36+09:00 Subject: Re: Count occurences of vars in array Nice! > arr.inject(Hash.new(0)) {|h,e| h[e]+= 1; h} > -- > JJ Fleck > PCSI1 Lycée Kléber >