mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-26 11:07:48 +03:00
8 lines
177 B
Plaintext
8 lines
177 B
Plaintext
structural type Optional a = None | Some a
|
|
r2 : Nat
|
|
r2 = match Optional.Some true with
|
|
Optional.Some true -> 1
|
|
Optional.Some false -> 0
|
|
Optional.None -> bug "unexpected"
|
|
|