added matching example, made block example about blocks returning values, not all blocks
This commit is contained in:
@@ -1 +1,11 @@
|
||||
# Matching
|
||||
|
||||
Case Patterns
|
||||
|
||||
```gleam
|
||||
when color is {
|
||||
Green -> "Success."
|
||||
Blue -> "Warning."
|
||||
Red -> "Error!"
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user