* 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
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).