@@ -1,15 +1,14 @@ def fib(x) { - if( x < 2 ) { 1 } - else { fib(x-1) + fib(x-2) } + if x<2 then 1 else fib(x-1) + fib(x-2) }; -let upto = λ(n, f){ - if( n > 0 ){ upto(n-1,f) }; +let upto = fun(n, f){ + if n > 0: upto(n-1,f); f(n) }; var compose = fun(f,g){ fun(x){f(g(x))} }; var "<<" = compose; upto(16, print<