Subject: Re: problem with delete
From: Erik Naggum <erik@naggum.net>
Date: 2000/10/02
Newsgroups: comp.lang.lisp
Message-ID: <3179498767555597@naggum.net>

* Frode Vatvedt Fjeld <frodef@acm.org>
| Really? My understanding of the hyperspec is that DELETE may or may
| not modify the list. So what is
| 
|   (let ((list '(1 2 3 4)))
|     (delete 2 list)
|     list)
| 
| defined to return?

  Apart from the undefined behavior of modifying a constant, of
  course, the first cons cell of the original list.  (You didn't
  expect this. :)

#:Erik
-- 
  If this is not what you expected, please alter your expectations.