71 lines
1.6 KiB
HTML
71 lines
1.6 KiB
HTML
|
<!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> = (PREDICATE)</TITLE>
|
||
|
</HEAD>
|
||
|
<BODY>
|
||
|
<meta name="description" value=" = (PREDICATE)">
|
||
|
<meta name="keywords" value="lp">
|
||
|
<meta name="resource-type" value="document">
|
||
|
<meta name="distribution" value="global">
|
||
|
<P>
|
||
|
<BR> <HR>
|
||
|
<A HREF="node78.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="node76.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="node78.html"> <> , <=, </A>
|
||
|
<B>Up:</B>
|
||
|
<A HREF="node72.html"> Appendix: Selected Lisp </A>
|
||
|
<B> Previous:</B>
|
||
|
<A HREF="node76.html"> 1+1- (FUNCTIONS)</A>
|
||
|
<BR> <HR> <P>
|
||
|
<H1> = (PREDICATE)</H1>
|
||
|
<P>
|
||
|
<b> Format:</b>
|
||
|
<tt> (= <num1> <num2> ...)</tt>
|
||
|
<P>
|
||
|
<b> Required arguments:</b>
|
||
|
1
|
||
|
<P>
|
||
|
<tt> <num1> </tt> must evaluate to a number
|
||
|
<P>
|
||
|
<b> Optional arguments:</b>
|
||
|
arbitrary
|
||
|
<P>
|
||
|
<tt> <num2> ...</tt> must all evaluate to numbers
|
||
|
<P>
|
||
|
<b>=</b> returns T if all the arguments are numerically equal to each other; it returns NIL otherwise.
|
||
|
<P>
|
||
|
<b> Examples:</b>
|
||
|
<P>
|
||
|
<BLOCKQUOTE>
|
||
|
<PRE>> (= 2)
|
||
|
T
|
||
|
|
||
|
> (= 2 3)
|
||
|
NIL
|
||
|
|
||
|
> (= 2 3 4)
|
||
|
NIL
|
||
|
|
||
|
> (= 2 2 2 2 )
|
||
|
T
|
||
|
|
||
|
> (= 2 2 3 2)
|
||
|
NIL
|
||
|
|
||
|
> (= 2 'a)
|
||
|
Error: A is not of type NUMBER.
|
||
|
</PRE>
|
||
|
</BLOCKQUOTE>
|
||
|
<P>
|
||
|
<BR> <HR>
|
||
|
<P>
|
||
|
<ADDRESS>
|
||
|
<I>© Colin Allen & Maneesh Dhagat <BR>
|
||
|
March 2007 </I>
|
||
|
</ADDRESS>
|
||
|
</BODY>
|