implement native version of some primitive functions such as car,crd...

This commit is contained in:
Yuichi Nishiwaki
2013-11-15 16:07:03 +09:00
parent b9985dd682
commit a2f022df4e
2 changed files with 44 additions and 10 deletions
-10
View File
@@ -1,10 +1,3 @@
; Although looking like a magic, it just works.
(define (car x)
(car x))
(define (cdr x)
(cdr x))
(define (zero? n)
(= n 0))
@@ -138,9 +131,6 @@
(every pred (cdr list))
#f)))
(define (null? obj)
(null? obj))
(define (any pred list)
(if (null? list)
#f