mirror of
https://github.com/anoma/juvix.git
synced 2024-12-03 09:41:10 +03:00
161a34c36b
* Closes #2769 * Removes old case syntax * Pretty printing doesn't print braces in `case` if the `case` is a "top" expression in a definition.
16 lines
203 B
Plaintext
16 lines
203 B
Plaintext
module Nat;
|
|
|
|
type Bool :=
|
|
| true : Bool
|
|
| false : Bool;
|
|
|
|
type Nat :=
|
|
| zero : Nat
|
|
| suc : Nat → Nat;
|
|
|
|
is-zero : Nat → Bool
|
|
| n :=
|
|
case n of
|
|
| zero := true
|
|
| suc _ := false;
|