help-gnu-emacs
[Top][All Lists]
Advanced

[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 <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]