mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 11:56:54 +03:00
10 lines
144 B
Plaintext
10 lines
144 B
Plaintext
type Maybe = (Some val) | None
|
|
|
|
main = @maybe
|
|
match maybe {
|
|
Maybe/None: 0
|
|
Maybe/Some: match maybe.val {
|
|
Maybe/None: 0
|
|
}
|
|
}
|