Что делать в Руби
[3, 6, 10, 13].inject(:+) => (((3 + 6) + 10) + 13) => 32
Frightened Fish
[3, 6, 10, 13].inject(:+) => (((3 + 6) + 10) + 13) => 32
[3, 6, 10].inject {|sum, number| sum + number} =>|3, 6| 3 + 6 => 9 =>|9, 10| 9 + 10 =>19