blob: e09e7a41628f5acd7c490c4508b501739dbd646f (
plain)
1
2
3
4
5
6
7
8
|
;; Author: Andrei S
(bind fib (lambda (x) ;; xth fib number
(if (< x 2) x (+ (fib (- x 1)) (fib (- x 2))))))
(fib 7)
(bind fibseq (lambda (n)
(if (= 0 n) 0 (begin (+ n 1) (fib n)))))
|