1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
<html>
<head><title>ENDP.html -- ACL2 Version 3.1</title></head>
<body text=#000000 bgcolor="#FFFFFF">
<h2>ENDP</h2>recognizer for empty lists
<pre>Major Section: <a href="PROGRAMMING.html">PROGRAMMING</a>
</pre><p>
In the ACL2 logic, <code>(endp x)</code> is the same as <code>(atom x)</code>.
See <a href="ATOM.html">atom</a>.
<p>
Unlike <code><a href="ATOM.html">atom</a></code>, the <a href="GUARD.html">guard</a> for <code>endp</code> requires that <code>x</code> is a
<code><a href="CONS.html">cons</a></code> pair or is <code>nil</code>. Thus, <code>endp</code> is typically used as a
termination test for functions that recur on a <code><a href="TRUE-LISTP.html">true-listp</a></code>
argument. See <a href="GUARD.html">guard</a> for general information about <a href="GUARD.html">guard</a>s.<p>
<code>Endp</code> is a Common Lisp function. See any Common Lisp
documentation for more information.
<br><br><br><a href="acl2-doc.html"><img src="llogo.gif"></a> <a href="acl2-doc-index.html"><img src="index.gif"></a>
</body>
</html>
|