Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (def + (lua "function (x, y) return x + y end"))
- (def - (lua "function (x, y) return x - y end"))
- (def < (lua "function (x, y) return x < y end"))
- (def fib-rec (lambda (n)
- (if (< n 2)
- n
- (+ (fib-rec (- n 1))
- (fib-rec (- n 2))))))
- (def time (lambda (n) (...
- (def t (lua "os.clock()"))
- (fib-rec n)
- (def t1 (lua "os.clock()"))
- (- t1 t))))
- (time (fib-rec 30)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement