ID: 10001 - simple map/reduce concept
Posted by krawek on Thu Mar 25 22:16:46 UTC 2010. Language ruby

[1,2,3,4].reduce { |v, a| a+=v }