mirror of
https://github.com/anoma/juvix.git
synced 2024-12-01 00:04:58 +03:00
16 lines
209 B
Plaintext
16 lines
209 B
Plaintext
module LazyBuiltin;
|
|
|
|
builtin bool
|
|
type Bool :=
|
|
| true : Bool
|
|
| false : Bool;
|
|
|
|
builtin bool-if
|
|
if : {A : Type} -> Bool -> A -> A -> A
|
|
| true x _ := x
|
|
| false _ x := x;
|
|
|
|
f : Bool -> Bool
|
|
| x := if x;
|
|
|