* moved cons to ikarus.pairs
This commit is contained in:
parent
8a54b4513c
commit
fdd93d6000
BIN
src/ikarus.boot
BIN
src/ikarus.boot
Binary file not shown.
|
@ -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)))
|
||||
|
||||
|
|
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue