[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deleteing from a list



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