ped

  • #erlang hackers, please translate the following ruby code: [1,1,1,2,3,3].inject(Hash.new(0)) { |h, i| h[i] += 1; h } in #erlang