emacs.d/clones/lisp/colinallen.dnsalias.org/lp/node74.html

71 lines
1.6 KiB
HTML
Raw Normal View History

2022-08-02 12:34:59 +02:00
<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
<!Originally converted to HTML using LaTeX2HTML 95 (Thu Jan 19 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
<HEAD>
<TITLE> + (FUNCTION)</TITLE>
</HEAD>
<BODY>
<meta name="description" value=" + (FUNCTION)">
<meta name="keywords" value="lp">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
<BR> <HR>
<A HREF="node75.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A>
<A HREF="node72.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A>
<A HREF="node73.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <BR>
<A HREF="lp.html"><B>Contents</B></A>
<B> Next:</B>
<A HREF="node75.html"> - (FUNCTION)</A>
<B>Up:</B>
<A HREF="node72.html"> Appendix: Selected Lisp </A>
<B> Previous:</B>
<A HREF="node73.html"> * (FUNCTION)</A>
<BR> <HR> <P>
<H1> + (FUNCTION)</H1>
<P>
<b> Format:</b>
<tt> (+ &lt;exp1&gt; &lt;exp2&gt; ...)</tt>
<P>
<b> Required arguments:</b> None.
<P>
Argument expressions must evaluate to numbers.
<P>
Argument expressions are evaluated and their sum is computed. See
below for special cases of zero or one arguments.
<P>
<b> Examples:</b>
<P>
<BLOCKQUOTE>
<PRE>&gt; (+ 4 5 6)
15
&gt; (+ 123.5 12/3)
127.5
&gt; (+ (* 2 3) 8)
14
&gt; (+ 'a 1)
Error: A is not of type NUMBER.
</PRE>
</BLOCKQUOTE>
<P>
<b> Special Cases:</b>
<P>
<BLOCKQUOTE>
<PRE>&gt; (+ 3)
3
&gt; (+)
0
</PRE>
</BLOCKQUOTE>
<P>
<BR> <HR>
<P>
<ADDRESS>
<I>&#169; Colin Allen &amp; Maneesh Dhagat <BR>
March 2007 </I>
</ADDRESS>
</BODY>