From: David Kastrup <dak@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Combining lists in Emacs Lisp
Date: Thu, 06 Dec 2007 23:38:41 +0100 [thread overview]
Message-ID: <85hcivo3da.fsf@lola.goethe.zz> (raw)
In-Reply-To: a45e9$47585e0c$8dc3973d$30657@ALLTEL.NET
Kodi Arfer <withheld@domain.tld> writes:
> before actually calling the sum function. So for the related situation in
> Emacs Lisp, I'm inclined to try
>
> (+ 4 foo 3 bar)
>
> But after the arguments are evaluated, the expression becomes
>
> (+ 4 (1 2) 3 (0 0))
You can try
(apply '+ 4 3 (append foo bar))
Which is not necessarily terribly efficient but should work.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2007-12-06 22:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-06 20:39 Combining lists in Emacs Lisp Kodi Arfer
2007-12-06 22:38 ` David Kastrup [this message]
2007-12-10 12:08 ` Kodi Arfer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85hcivo3da.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.