Check
This commit is contained in:
parent
45edc3e622
commit
58ee2c39a6
|
@ -1 +1,8 @@
|
||||||
# Check
|
# Check
|
||||||
|
|
||||||
|
Check is faster than assert but has weaker guarantees.
|
||||||
|
You can unpack (1-match) data in a check.
|
||||||
|
|
||||||
|
```gleam
|
||||||
|
check Some(x) = Option(Int)
|
||||||
|
```
|
Loading…
Reference in New Issue