From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: alist and multiple values for one key Date: Mon, 20 Jan 2003 18:19:54 +0100 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <841y3720xx.fsf@lucy.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043088128 28384 80.91.224.249 (20 Jan 2003 18:42:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2003 18:42:08 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ags2-0007NY-00 for ; Mon, 20 Jan 2003 19:42:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18agqr-0004Hi-0A for gnu-help-gnu-emacs@m.gmane.org; Mon, 20 Jan 2003 13:40:53 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!pd9e1ed55.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: pd9e1ed55.dip.t-dialin.net (217.225.237.85) Original-X-Trace: fu-berlin.de 1043087879 26427750 217.225.237.85 (16 [73968]) User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:jylWGMk03/qKSlvIJbWkjHZ3BYI= Original-Xref: shelby.stanford.edu gnu.emacs.help:109241 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5764 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5764 ncauderan@hotmail.com (Norbert C.) writes: > 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. Oh, with (require 'cl), you could do (remove-if-not (lambda (x) (eq (car x) KEY)) ALIST) Is that natural? It's short, anyway. -- Ambibibentists unite!