* moved cons to ikarus.pairs

This commit is contained in:
Abdulaziz Ghuloum 2007-05-05 05:07:49 -04:00
parent 8a54b4513c
commit fdd93d6000
3 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@ -102,7 +102,6 @@
[else
(error 'char-downcase "~s is not a character" c)])))
(primitive-set! 'cons (lambda (x y) (cons x y)))
(primitive-set! 'eq? (lambda (x y) (eq? x y)))

View File

@ -2,13 +2,16 @@
(library (ikarus pairs)
(export
cons
car cdr caar cdar cadr cddr caaar cdaar cadar cddar caadr cdadr
caddr cdddr caaaar cdaaar cadaar cddaar caadar cdadar caddar
cdddar caaadr cdaadr cadadr cddadr caaddr cdaddr cadddr cddddr)
(import
(only (ikarus) define if lambda pair? error quote let)
(only (scheme) $car $cdr))
(rename (only (scheme) cons $car $cdr)
(cons sys:cons)))
(define cons (lambda (x y) (sys:cons x y)))
(define err
(lambda (who x)
(error who "invalid list structure ~s" x)))