n = (1..5).inject{ |m, x| m * x }
puts n
120

n = (1..5).inject{ |m, x| m + x }
puts n
15

初期値を与えなくていいのはなぜですか?