From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: August Newsgroups: gmane.emacs.help Subject: Re: shorter form of frequently-seen lisp idiom? Date: Sun, 20 Feb 2005 00:31:43 +0100 Message-ID: <1108855903.5324.48.camel@c83-250-204-250.bredband.comhem.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1108856391 17645 80.91.229.2 (19 Feb 2005 23:39:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 Feb 2005 23:39:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 20 00:39:51 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D2eCO-0000A5-Of for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Feb 2005 00:39:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D2eT2-0008AX-3t for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Feb 2005 18:56:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D2eNI-0005Ae-5k for help-gnu-emacs@gnu.org; Sat, 19 Feb 2005 18:51:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D2eN5-00054m-Iv for help-gnu-emacs@gnu.org; Sat, 19 Feb 2005 18:50:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D2eN3-0004qw-QS for help-gnu-emacs@gnu.org; Sat, 19 Feb 2005 18:50:45 -0500 Original-Received: from [81.228.10.113] (helo=av3-2-sn4.m-sp.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D2e4S-0006pS-Fz for help-gnu-emacs@gnu.org; Sat, 19 Feb 2005 18:31:32 -0500 Original-Received: by av3-2-sn4.m-sp.skanova.net (Postfix, from userid 502) id 442FC37E83; Sun, 20 Feb 2005 00:31:31 +0100 (CET) Original-Received: from smtp4-2-sn4.m-sp.skanova.net (smtp4-2-sn4.m-sp.skanova.net [81.228.10.180]) by av3-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id 371CA37E45 for ; Sun, 20 Feb 2005 00:31:31 +0100 (CET) Original-Received: from c83-250-204-250.bredband.comhem.se (c83-250-204-250.bredband.comhem.se [83.250.204.250]) by smtp4-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id 1972F37E47 for ; Sun, 20 Feb 2005 00:31:31 +0100 (CET) Original-To: help-gnu-emacs@gnu.org In-Reply-To: X-Mailer: Evolution 2.0.2 (2.0.2-3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24185 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24185 On l=C3=B6r, 2005-02-19 at 19:43 +0100, David Kastrup wrote: > Joe Corneli writes: >=20 > > Is there a shorter way to concatenate a list of strings > > than this? > > > > (eval (append (list 'concat) list-of-strings)) > > > > Or more generally,=20 > > > > (eval (append (list 'function-that-acts-on-foos) list-of-foos)) >=20 > (apply #'concat list-of-strings) >=20 >=20 What's the purpose of the hash sign? `(apply 'concat list-of-strings)' works too. --=20 August