aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/lists.texi16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi
index 761750eb20c..57cefeac962 100644
--- a/doc/lispref/lists.texi
+++ b/doc/lispref/lists.texi
@@ -153,6 +153,22 @@ considered a list and @code{not} when it is considered a truth value
153@end example 153@end example
154@end defun 154@end defun
155 155
156@defun proper-list-p object
157This function returns the length of @var{object} if it is a proper
158list, @code{nil} otherwise (@pxref{Cons Cells}). In addition to
159satisfying @code{listp}, a proper list is neither circular nor dotted.
160
161@example
162@group
163(proper-list-p '(a b c))
164 @result{} 3
165@end group
166@group
167(proper-list-p '(a b . c))
168 @result{} nil
169@end group
170@end example
171@end defun
156 172
157@node List Elements 173@node List Elements
158@section Accessing Elements of Lists 174@section Accessing Elements of Lists