mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 11:56:54 +03:00
9 lines
147 B
Plaintext
9 lines
147 B
Plaintext
type Option = (Some val) | None
|
|
|
|
Option/or = @a @b match a {
|
|
Option/Some: a
|
|
Option/None: b
|
|
}
|
|
|
|
main = (Option/or (Option/Some 5) (Option/None))
|