help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: Setting the nth element of a list


From: Drew Adams
Subject: RE: Setting the nth element of a list
Date: Thu, 4 Jun 2009 15:06:08 -0700

> (setcar (cdr x 'b)
> 
> How do I generalize this to a function that sets (changes) the nth
> element of a list (for side effects only)?

Use setcar with nthcdr.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]