[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shorter form of frequently-seen lisp idiom?
From: |
David Kastrup |
Subject: |
Re: shorter form of frequently-seen lisp idiom? |
Date: |
Sat, 19 Feb 2005 19:43:50 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Joe Corneli <jcorneli@math.utexas.edu> writes:
> Is there a shorter way to concatenate a list of strings
> than this?
>
> (eval (append (list 'concat) list-of-strings))
>
> Or more generally,
>
> (eval (append (list 'function-that-acts-on-foos) list-of-foos))
(apply #'concat list-of-strings)
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Re: shorter form of frequently-seen lisp idiom?, Stefan Monnier, 2005/02/22