1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
<html>
<head><title>ASSOC-EQUAL.html -- ACL2 Version 3.1</title></head>
<body text=#000000 bgcolor="#FFFFFF">
<h2>ASSOC-EQUAL</h2>look up key in association list
<pre>Major Section: <a href="PROGRAMMING.html">PROGRAMMING</a>
</pre><p>
<code>(Assoc-equal x alist)</code> is the first member of <code>alist</code> whose <code><a href="CAR.html">car</a></code>
is <code>x</code>, or <code>nil</code> if no such member exists.
<p>
<code>(Assoc-equal x alist)</code> has a <a href="GUARD.html">guard</a> of <code>(alistp alist)</code>, and
returns the first member of alist whose <code><a href="CAR.html">car</a></code> is <code>x</code>, or <code>nil</code> if
no such member exists. Thus, <code>assoc-equal</code> has the same
functionality as the Common Lisp function <code><a href="ASSOC.html">assoc</a></code>, except that it
uses the <code><a href="EQUAL.html">equal</a></code> function to test whether <code>x</code> is the same as each
successive `key' of <code>alist</code>. See <a href="ASSOC.html">assoc</a> and see <a href="ASSOC-EQ.html">assoc-eq</a>.
<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>
|