[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Deleteing from a list
- To: clisp-list@ma2s2.mathematik.uni-karlsruhe.de
- Subject: Deleteing from a list
- From: daa93@aber.ac.uk
- Date: Wed, 22 Mar 1995 14:57:18 GMT
- Acknowledge-to: daa93@aber.ac.uk
- Return-receipt-to: daa93@aber.ac.uk
I have just discovered a curious ``feature'' of delete. It seems that
you cannot delete the first item in a list. The value returned is
correct but the list itself is not altered, e.g.
> (setf l (list 'a 'b 'c))
(A B C)
> (delete 'a l)
(B C)
> l
(A B C)
> (delete 'b l)
(A C)
> l
(A C)
I am using an old version of CLISP due to necessity so it may be
a known and fixed bug.
David.
--
David Arnold (daa93@aber.ac.uk)
Dept. Computer Science +44 (0)1970-622449
University of Wales,Aberystwyth, Dyfed SY23 3DB, UK.
http://www.dcs.aber.ac.uk/~daa93