mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 11:56:54 +03:00
14 lines
199 B
Plaintext
14 lines
199 B
Plaintext
type Maybe = None | (Some val)
|
|
|
|
Foo = @$x match x = (Maybe/Some 1) {
|
|
Maybe/None: $x
|
|
Maybe/Some: x.val
|
|
}
|
|
|
|
Bar = (match x = (Maybe/Some 1) {
|
|
Maybe/None: $x
|
|
Maybe/Some: x.val
|
|
} @$x *)
|
|
|
|
main = *
|