File: SUBLIS.html

package info (click to toggle)
acl2 3.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 36,712 kB
  • ctags: 38,396
  • sloc: lisp: 464,023; makefile: 5,470; sh: 86; csh: 47; cpp: 25; ansic: 22
file content (22 lines) | stat: -rw-r--r-- 1,134 bytes parent folder | download
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>