Re: Having trouble deleting first item in list
- From: "justinhj" <justinhj@xxxxxxxxx>
- Date: 28 Jun 2005 10:20:47 -0700
If you're always deleting the first item in the list you could just do
:
(defun delete-first( lst )
(cdr lst))
(setf lst '( a b c 1 2 3 ))
(setf lst (delete-first lst))
.
- References:
- Having trouble deleting first item in list
- From: jonathon
- Re: Having trouble deleting first item in list
- From: Matthias Buelow
- Having trouble deleting first item in list
- Prev by Date: Re: I can't find which line is causing the error
- Next by Date: Re: warn if not top-level?
- Previous by thread: Re: Having trouble deleting first item in list
- Next by thread: Re: Having trouble deleting first item in list
- Index(es):
Relevant Pages
|
|