mirror of
https://github.com/samsonjs/lake.git
synced 2026-03-25 08:55:49 +00:00
add stdlib with little schemer stuff
This commit is contained in:
parent
ccab787366
commit
3015167a30
1 changed files with 6 additions and 0 deletions
6
stdlib.scm
Normal file
6
stdlib.scm
Normal 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)))
|
||||
Loading…
Reference in a new issue