回答編集履歴

1

追記に対する回答

2015/12/18 14:39

投稿

anaprestoo
anaprestoo

スコア199

test CHANGED
@@ -3,3 +3,11 @@
3
3
  (1..10).each_cons(3).to_a
4
4
 
5
5
  ```
6
+
7
+ 追記に対する回答
8
+
9
+ ```ruby
10
+
11
+ (1..10).each_cons(3).map{|arr| arr.inject(:+) }
12
+
13
+ ```