all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Sequence and/or Array-Variant of member() and/or memq()
@ 2009-10-26 14:03 Nordlöw
  2009-10-26 14:10 ` Pascal J. Bourguignon
  0 siblings, 1 reply; 2+ messages in thread
From: Nordlöw @ 2009-10-26 14:03 UTC (permalink / raw)
  To: help-gnu-emacs

Is there a sequence/array-variant of the functions member() and memq
(), similar how elt() generalizes nth()?

Thanks in advance,
Nordlöw


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Sequence and/or Array-Variant of member() and/or memq()
  2009-10-26 14:03 Sequence and/or Array-Variant of member() and/or memq() Nordlöw
@ 2009-10-26 14:10 ` Pascal J. Bourguignon
  0 siblings, 0 replies; 2+ messages in thread
From: Pascal J. Bourguignon @ 2009-10-26 14:10 UTC (permalink / raw)
  To: help-gnu-emacs

Nordlöw <per.nordlow@gmail.com> writes:

> Is there a sequence/array-variant of the functions member() and memq
> (), similar how elt() generalizes nth()?

(require 'cl)
(find elt sequence :test (function equal))
(find elt sequence :test (function eql))

-- 
__Pascal Bourguignon__


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-26 14:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-26 14:03 Sequence and/or Array-Variant of member() and/or memq() Nordlöw
2009-10-26 14:10 ` Pascal J. Bourguignon

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.