* delq() without side effect
@ 2008-10-03 11:46 Nordlöw
2008-10-03 13:29 ` Juanma Barranquero
2008-10-03 13:45 ` Joost Kremers
0 siblings, 2 replies; 3+ messages in thread
From: Nordlöw @ 2008-10-03 11:46 UTC (permalink / raw)
To: help-gnu-emacs
Is there an, if possible built-in (efficient), function that works
like delq() but instead of modifying its second argument returns the
result (pure function)?
Thanks in advance,
Nordlöw
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: delq() without side effect
2008-10-03 11:46 delq() without side effect Nordlöw
@ 2008-10-03 13:29 ` Juanma Barranquero
2008-10-03 13:45 ` Joost Kremers
1 sibling, 0 replies; 3+ messages in thread
From: Juanma Barranquero @ 2008-10-03 13:29 UTC (permalink / raw)
To: Nordlöw; +Cc: help-gnu-emacs
On Fri, Oct 3, 2008 at 13:46, Nordlöw <per.nordlow@gmail.com> wrote:
> Is there an, if possible built-in (efficient), function that works
> like delq() but instead of modifying its second argument returns the
> result (pure function)?
`remq', if understand what you're asking for.
Juanma
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: delq() without side effect
2008-10-03 11:46 delq() without side effect Nordlöw
2008-10-03 13:29 ` Juanma Barranquero
@ 2008-10-03 13:45 ` Joost Kremers
1 sibling, 0 replies; 3+ messages in thread
From: Joost Kremers @ 2008-10-03 13:45 UTC (permalink / raw)
To: help-gnu-emacs
Nordlöw wrote:
> Is there an, if possible built-in (efficient), function that works
> like delq() but instead of modifying its second argument returns the
> result (pure function)?
remq.
note: delq also returns the result. (in fact, the doc says that you should
always use (setq lst (delq elt lst)).
--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-03 13:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-03 11:46 delq() without side effect Nordlöw
2008-10-03 13:29 ` Juanma Barranquero
2008-10-03 13:45 ` Joost Kremers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).