botvector.net domain for sale $2k usd (negotiable). Em@il me t0: alex DOT creopolis at gmail DOT com

My Git activity

Showing posts with label hash. Show all posts
Showing posts with label hash. Show all posts

09 September 2007

What is that ?

Does anyone can define this function ?

range.inject(Hash.new(0)){|h,e| h[e] += 1; h}


range is array of integers like: [1,22,12,8,45,3,etc..]