scheme/little_schemer/tls.ss

12 lines
156 B
Scheme
Raw Permalink Normal View History

2024-08-20 19:10:43 +02:00
(define atom?
(lambda (x)
(and (not (pair? x)) (not (null? x)))))
(define add1
(lambda (x)
(+ x 1)))
(define sub1
(lambda (x)
(- x 1)))