From: Hadron <hadronquark@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: lisp question
Date: Sun, 29 Apr 2007 19:14:17 +0200 [thread overview]
Message-ID: <871wi385na.fsf@gmail.com> (raw)
from the lisp tutorial which comes with emacs 22:
,----
| 1.8.3 Variable Number of Arguments
| ----------------------------------
|
| Some functions, such as `concat', `+' or `*', take any number of
| arguments. (The `*' is the symbol for multiplication.) This can be
| seen by evaluating each of the following expressions in the usual way.
| What you will see in the echo area is printed in this text after `=>',
| which you may read as `evaluates to'.
|
| In the first set, the functions have no arguments:
|
| (+) => 0
|
| (*) => 1
|
| In this set, the functions have one argument each:
|
| (+ 3) => 3
|
| (* 3) => 3
|
| In this set, the functions have three arguments each:
|
| (+ 3 4 5) => 12
|
| (* 3 4 5) => 60
`----
It kind of glosses over sections (1) and (2).
Why do (*) and (* 3) evaluate to 1?
next reply other threads:[~2007-04-29 17:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-29 17:14 Hadron [this message]
2007-04-29 17:32 ` lisp question Barry Margolin
2007-04-29 23:06 ` Hadron
-- strict thread matches above, loose matches on Subject: below --
2007-04-30 18:25 A Soare
2007-04-30 19:09 ` Peter Dyballa
[not found] <mailman.5.1177957929.32220.help-gnu-emacs@gnu.org>
2007-05-01 8:23 ` Brendan Halpin
2007-05-01 11:41 ` Hartmut Figge
2007-05-01 13:24 ` Malte Spiess
2007-05-01 18:39 A Soare
2007-05-01 19:10 ` Jesper Harder
2007-05-01 21:11 ` Marco Almeida
[not found] <mailman.55.1178045196.32220.help-gnu-emacs@gnu.org>
2007-05-01 19:21 ` Maarten Bergvelt
2007-05-01 20:32 ` Scott Frazer
2011-08-04 2:25 suvayu ali
2011-08-04 4:52 ` Jambunathan K
2011-08-04 6:49 ` suvayu ali
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871wi385na.fsf@gmail.com \
--to=hadronquark@gmail.com \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).