(setq alist (cdr alist))))
(car alist))
+(defun acons (key datum alist)
+ (cons (cons key datum) alist))
(define-setf-expander car (x)
(values-list /))
(export '(&body &key &optional &rest * ** *** *gensym-counter* *package* + ++
- +++ - / // /// 1+ 1- < <= = = > >= and append apply aref arrayp
+ +++ - / // /// 1+ 1- < <= = = > >= acons and append apply aref arrayp
assoc atom block boundp butlast cadar caaar caadr cdaar cdadr
cddar caaaar caaadr caadar caaddr cadaar cadadr caddar cdaaar
cdaadr cdadar cdaddr cddaar cddadr cdddar cddddr caar cadddr caddr
(test (tailp a a)))
(test (tailp 'a (cons 'b 'a)))
+; ACONS
+; FIXME: Write the alist in a more natural form once #72 has been fixed
+(test (equal (cons (cons 1 2) (list (cons 3 4)))
+ (acons 1 2 (list (cons 3 4)))))
+(test (equal (list (cons 1 2)) (acons 1 2 ())))
+
; SUBST
; Can't really test this until EQUAL works properly on lists