File: LEN.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 (18 lines) | stat: -rw-r--r-- 778 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html>
<head><title>LEN.html  --  ACL2 Version 3.1</title></head>
<body text=#000000 bgcolor="#FFFFFF">
<h2>LEN</h2>length of a list
<pre>Major Section:  <a href="PROGRAMMING.html">PROGRAMMING</a>
</pre><p>

<code>Len</code> returns the length of a list.
<p>
A Common Lisp function that is appropriate for both strings and
proper lists is <code>length</code>; see <a href="LENGTH.html">length</a>.  The guard for <code>len</code> is <code>t</code>.<p>

(Low-level implementation note.  ACL2 provides a highly-optimized
implementation of <code>len</code>, which is tail-recursive and fixnum-aware, that
differs from its simple ACL2 definition.)
<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>