loom
15 строк · 272.0 Байт
1#{ initial_value : null } type auto
2#{ initial_value : 0 } type int
3
4def auto :
5x = 1,
6factor = fn [factor] (int : x) -> int
7{
8if (x <= 1)
9return 1
10
11return x*factor(x-1)
12},
13y = 2
14
15print factor(10)
16