Amokrane
6/15/2011 - 10:59 PM

inject is evil

inject is evil

some_list.inject({}) do |hash, val|
  hash[val] = some_transform(val)
  hash 
end