1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-02 23:43:01 +03:00
juvix/tests/negative/Iterators4.juvix

13 lines
225 B
Plaintext
Raw Normal View History

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;