mirror of
https://github.com/anoma/juvix.git
synced 2024-12-02 10:47:32 +03:00
2baad15a41
* Enables new function syntax in local let-declarations * Closes #2251
10 lines
162 B
Plaintext
10 lines
162 B
Plaintext
module OmitType;
|
|
|
|
type List A :=
|
|
| nil
|
|
| cons A (List A);
|
|
|
|
map {A B} (f : A → B) : List A → List B
|
|
| nil := nil
|
|
| (cons h t) := cons (f h) (map f t);
|