Add reduce function on Sequence

This commit is contained in:
Luchs
2015-01-16 09:24:59 +01:00
parent 64c2bd7633
commit 4c6b819ed1
5 changed files with 31 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
[1, 2, 3].reduce {|x, y, z| x } // expect runtime error: Function expects more arguments.