[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shorter form of frequently-seen lisp idiom?
From: |
August |
Subject: |
Re: shorter form of frequently-seen lisp idiom? |
Date: |
Sun, 20 Feb 2005 00:31:43 +0100 |
On lör, 2005-02-19 at 19:43 +0100, David Kastrup wrote:
> 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)
>
>
What's the purpose of the hash sign? `(apply 'concat list-of-strings)'
works too.
--
August
Re: shorter form of frequently-seen lisp idiom?, Stefan Monnier, 2005/02/22
Re: shorter form of frequently-seen lisp idiom?, Oliver Scholz, 2005/02/22