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: Stefan Monnier
Subject: Re: shorter form of frequently-seen lisp idiom?
Date: Tue, 22 Feb 2005 09:44:46 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Is there a shorter way to concatenate a list of strings than this?

>  (eval (append (list 'concat) list-of-strings))

Rule of thumb: if your solution uses `eval' it's either buggy or clunky.

Other than the best solution using `apply', you may also want to use
`mapconcat', depending on the specific circumstance.


        Stefan

reply via email to

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