An email I received yesterday:
results = records[“top_5”].inject({:labels => [], :total => []}) do |h, v|
puts v.to_s
h[:total] << v[“total”]
h[:labels] << v[pivot]
h
end
Shit, thats ruby not paper. Paper: http://www.rotman.utoronto.ca/newthinking/francomitchell.pdf