Denis Bueno <[EMAIL PROTECTED]> writes: > On Sun, 20 Feb 2005 00:55:53 +0100, David Kastrup <[EMAIL PROTECTED]> wrote: >> August <[EMAIL PROTECTED]> writes: >> >> > On lör, 2005-02-19 at 19:43 +0100, David Kastrup wrote: >> >> Joe Corneli <[EMAIL PROTECTED]> 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)) > > Or even: > > (reduce #'function-that-acts-on-2-foos list-of-foos) > > Like: > > (reduce #'concat '("aoeu" "1234" "htns")) => > "aoeu1234htns"
Why should one do that? Quite less efficient than using "apply", and only available if cl has been loaded. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs