Update patterns.rst
commitd8d0f54a66dfa6793093542686f7cba33f478e6e
authorPhil Freeman <paf31@cantab.net>
dateFri 7 Feb 2014, 10:00 (13 years ago)
parent13fb411
docs/source/patterns.rst+1−1
@@ -65,7 +65,7 @@ Array Patterns
6565Array patterns match an input which is an array, and bring its elements into scope. For example::
6666
6767 f [x] = x
68− f [x, y] = x * y + f xs
68+ f [x, y] = x * y
6969 f _ = 0
7070
7171Here, the first pattern only matches arrays of length one, and brings the first element of the array into scope.