blob: 9eaeffc62d11c429a759d5256e2f9ef2d813826d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
(include "fib.nxs")
(include "../stdlib/math.nxs")
(bind factorial (lambda (n)
(if (= n 0) 1 (* n (factorial (- n 1))))))
(print (fib 7))
(print (+ (factorial 5) 10))
(exp 3)
(print (quote (+ (3 2) 4)))
|