added matching example, made block example about blocks returning values, not all blocks

This commit is contained in:
Micah Kendall
2022-11-26 22:29:51 +11:00
committed by Lucas
parent 269cf8c13f
commit 6eca7fc6ab
2 changed files with 30 additions and 27 deletions

View File

@@ -1 +1,11 @@
# Matching
Case Patterns
```gleam
when color is {
Green -> "Success."
Blue -> "Warning."
Red -> "Error!"
}
```