loom
11 строк · 277.0 Байт
1#{ initial_value : null } type auto
2#{ initial_value : 0 } type int
3
4def int : x = 12
5def auto : f = fn [x, auto, int] (int : y) -> int
6{
7def auto : f = fn [x,y] () -> int { return x+y }
8return f()
9}
10
11print f(5)
12