unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* alist and multiple values for one key
@ 2003-01-20 13:03 Norbert C.
  2003-01-20 16:03 ` Friedrich Dominicus
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Norbert C. @ 2003-01-20 13:03 UTC (permalink / raw)


Hi,

       I would lile to find the "good way" to retrieve multiple values
for a given key in an alist.

       But I didn't find a natural way to do it. For example :
(setq trees '((pine . cones) (pine . acorns) (oak . acorns) (maple .
seeds)))
==> ((pine . cones) (pine . acorns) (oak . acorns) (maple . seeds))
(assoc 'pine trees)
==> (pine . cones)

What I'd like is something that returns each value associated with
'pine.

Any thought ?

Thank you,

Norbert

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

end of thread, other threads:[~2003-01-21 11:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-20 13:03 alist and multiple values for one key Norbert C.
2003-01-20 16:03 ` Friedrich Dominicus
2003-01-20 23:53   ` Hannu Koivisto
2003-01-21  6:30     ` Friedrich Dominicus
2003-01-21  6:57     ` Friedrich Dominicus
2003-01-20 16:07 ` Klaus Berndl
2003-01-20 17:18 ` Kai Großjohann
2003-01-20 17:19 ` Kai Großjohann
2003-01-20 23:45   ` Hannu Koivisto
2003-01-21 10:53 ` Oliver Scholz
2003-01-21 11:04   ` David Kastrup

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