1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
<html>
<head><title>RASSOC-EQ.html -- ACL2 Version 3.1</title></head>
<body text=#000000 bgcolor="#FFFFFF">
<h2>RASSOC-EQ</h2>look up value in association list, using <code><a href="EQ.html">eq</a></code> as test
<pre>Major Section: <a href="PROGRAMMING.html">PROGRAMMING</a>
</pre><p>
<code>(Rassoc-eq x alist)</code> is similar to <code>(assoc-eq x alist)</code>, the difference
being that it looks for the first pair in the given alist whose <code><a href="CDR.html">cdr</a></code>,
rather than <code><a href="CAR.html">car</a></code>, is <code><a href="EQ.html">eq</a></code> to <code>x</code>. See <a href="ASSOC.html">assoc</a>.
<p>
The <a href="GUARD.html">guard</a> of <code>rassoc-eq</code> requires its second argument to be an alist,
and in addition, that either its first argument is a <code><a href="SYMBOLP.html">symbolp</a></code> or
else all second components of pairs belonging to the second argument
are <code><a href="SYMBOLP.html">symbolp</a></code>s.<p>
<code>Rassoc</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>
|