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

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

How could I modify list element?


From: richardeng
Subject: How could I modify list element?
Date: Tue, 09 Dec 2008 22:15:01 +0800
User-agent: Thunderbird 2.0.0.18 (Windows/20081105)

Hi all,
    setcar/setcdr is not convenient.
    In a long list, ex.
    (setq a '(a b c d e f g))
    I want to change 'e to 'E.
    I need a function: (set-list-elt list old-elt new-elt)

    How? translate list to vector, modify, then turn it back???









reply via email to

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