all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.