mirror of
https://github.com/anoma/juvix.git
synced 2024-12-01 00:04:58 +03:00
2baad15a41
* Enables new function syntax in local let-declarations * Closes #2251
13 lines
225 B
Plaintext
13 lines
225 B
Plaintext
module Iterators4;
|
|
|
|
syntax iterator map;
|
|
syntax iterator map {init: 0};
|
|
map {A B} (f : A → B) (x : A) : B := f x;
|
|
|
|
builtin bool
|
|
type Bool :=
|
|
| true : Bool
|
|
| false : Bool;
|
|
|
|
main : Bool := map (y := false) (x in true) x;
|