add stdlib with little schemer stuff

This commit is contained in:
Sami Samhuri 2011-04-20 16:11:37 -07:00
parent ccab787366
commit 3015167a30

6
stdlib.scm Normal file
View file

@ -0,0 +1,6 @@
; for The Little Schemer
(define atom? (lambda (x) (and (not (pair? x)) (not (null? x)))))
(define add1 (lambda (x) (+ x 1)))
(define sub1 (lambda (x) (- x 1)))
(define zero? (lambda (x) (= x 0)))