|
@@ -159,7 +159,7 @@ between first argiment and second (and next) must be at least comma and 1 whites
|
|
|
### 2.4.2 pattern matching examples
|
|
|
```
|
|
|
// left = function type, right = arguments type
|
|
|
-bool = string str
|
|
|
+bool has_begin_test = string str =
|
|
|
has_begin_test "test" ++ _ = true
|
|
|
has_begin_test _ = false
|
|
|
|
|
@@ -175,7 +175,7 @@ bool has_begin_test(string str){
|
|
|
|
|
|
```
|
|
|
// left = function type, right = arguments type
|
|
|
-bool = string str, out string rest
|
|
|
+bool has_begin_test = string str, out string rest =
|
|
|
has_begin_test "test" ++ rest = true
|
|
|
has_begin_test _ = false
|
|
|
|