You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: language/Syntax.md
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -410,6 +410,19 @@ Operator sections also work for functions used this way:
410
410
fooBy2 = (_ `foo` 2)
411
411
```
412
412
413
+
## Case expressions
414
+
415
+
The `case` and `of` keywords are used to deconstruct values to create logic based on the value's constructors. You can match on multiple values by delimiting them with `,` in the head and cases.
416
+
417
+
```purescript
418
+
f :: Maybe Boolean -> Either Boolean Boolean -> String
0 commit comments