mirror of
https://github.com/anoma/juvix.git
synced 2024-12-02 23:43:01 +03:00
c1d85c451e
* Closes #1828
15 lines
213 B
Plaintext
15 lines
213 B
Plaintext
module LazyBuiltin;
|
|
|
|
builtin bool type Bool :=
|
|
| true : Bool
|
|
| false : Bool;
|
|
|
|
builtin bool-if if : {A : Type} -> Bool -> A -> A -> A;
|
|
if true x _ := x;
|
|
if false _ x := x;
|
|
|
|
f : Bool -> Bool;
|
|
f x := if x;
|
|
|
|
end;
|