git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Update patterns.rst
d8d0f54Phil Freeman
docs/source/patterns.rst+1−1
@@ -65,7 +65,7 @@ Array Patterns
65Array patterns match an input which is an array, and bring its elements into scope. For example::
65Array patterns match an input which is an array, and bring its elements into scope. For example::
66
66
67 f [x] = x
67 f [x] = x
68− f [x, y] = x * y + f xs
68+ f [x, y] = x * y
69 f _ = 0
69 f _ = 0
70
70
71Here, the first pattern only matches arrays of length one, and brings the first element of the array into scope.
71Here, the first pattern only matches arrays of length one, and brings the first element of the array into scope.