picrin/piclib/built-in.scm

24 lines
268 B
Scheme
Raw Normal View History

2013-10-28 13:50:12 -04:00
(define (zero? n)
(= n 0))
(define (positive? x)
(> x 0))
(define (negative? x)
(< x 0))
2013-10-27 05:38:55 -04:00
(define (caar p)
(car (car p)))
(define (cadr p)
(car (cdr p)))
(define (cdar p)
(cdr (car p)))
(define (cddr p)
(cdr (cdr p)))
(define (list . args)
args)