mirror of
https://github.com/anoma/juvix.git
synced 2024-12-01 00:04:58 +03:00
22de9d0233
* Closes #2265
14 lines
232 B
Plaintext
14 lines
232 B
Plaintext
module Iterators2;
|
|
|
|
syntax iterator bind {range: 1};
|
|
bind : {A B : Type} → (A → B) → A → B;
|
|
bind f x := f x;
|
|
|
|
builtin bool
|
|
type Bool :=
|
|
| true : Bool
|
|
| false : Bool;
|
|
|
|
main : Bool;
|
|
main := bind (x in true; y in false) x;
|