|
From: | Stefan Monnier |
Subject: | Re: best way to get the list of unique keys from 2 alists |
Date: | Sun, 18 Dec 2005 10:20:53 -0500 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> I've got 2 alists of (SYMBOL . "STRING") pairs, and I need to get the > list of unique symbol names to pass to completing-read as its TABLE > argument: (("SYMBOL-NAME") ...) I'd just do: (completing-read "foo" (mapcar (lambda (x) (symbol-name (car x))) (append list1 list2))) You don't need to remove duplicates. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |