1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<html>
<head><title>SUBLIS.html -- ACL2 Version 3.1</title></head>
<body text=#000000 bgcolor="#FFFFFF">
<h2>SUBLIS</h2>substitute an alist into a tree
<pre>Major Section: <a href="PROGRAMMING.html">PROGRAMMING</a>
</pre><p>
<code>(Sublis alist tree)</code> is obtained by replacing every leaf of
<code>tree</code> with the result of looking that leaf up in the association
list <code>alist</code>. However, a leaf is left unchanged if it is not found
as a key in <code>alist</code>.
<p>
Leaves are lookup up using the function <code><a href="ASSOC.html">assoc</a></code>. The <a href="GUARD.html">guard</a> for
<code>(sublis alist tree)</code> requires <code>(eqlable-alistp alist)</code>. This
<a href="GUARD.html">guard</a> ensures that the <a href="GUARD.html">guard</a> for <code><a href="ASSOC.html">assoc</a></code> will be met for each
lookup generated by <code>sublis</code>.<p>
<code>Sublis</code> is defined in Common Lisp. 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>
|