Training to develop the IT skills

IT技術の習得を日々記録します

配列の足し算

arry = [1,  2,  3]
arry.inject(:+)
arry = ["1",  "2",  "3"]
arry.map(&:to_i).inject(:+)