add some missing numeric functions
This commit is contained in:
parent
15fdbc9c7d
commit
6d606e84e0
|
@ -1,3 +1,12 @@
|
||||||
|
(define (zero? n)
|
||||||
|
(= n 0))
|
||||||
|
|
||||||
|
(define (positive? x)
|
||||||
|
(> x 0))
|
||||||
|
|
||||||
|
(define (negative? x)
|
||||||
|
(< x 0))
|
||||||
|
|
||||||
(define (caar p)
|
(define (caar p)
|
||||||
(car (car p)))
|
(car (car p)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue