Mercurial > hg > xemacs-beta
comparison man/lispref/lists.texi @ 1549:bc9eadea35cf
[xemacs-hg @ 2003-06-30 09:30:58 by stephent]
doc improvements <87isqn9aly.fsf@tleepslib.sk.tsukuba.ac.jp>
<8765mo9cmp.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Mon, 30 Jun 2003 09:31:01 +0000 |
parents | 576fb035e263 |
children | b880e7bdec21 |
comparison
equal
deleted
inserted
replaced
1548:5365af805d4c | 1549:bc9eadea35cf |
---|---|
168 @end example | 168 @end example |
169 @end defun | 169 @end defun |
170 | 170 |
171 @defun listp object | 171 @defun listp object |
172 This function returns @code{t} if @var{object} is a cons cell or | 172 This function returns @code{t} if @var{object} is a cons cell or |
173 @code{nil}. Otherwise, it returns @code{nil}. | 173 @code{nil}. Otherwise, it returns @code{nil}. @code{true-list-p} is |
174 slower, but in some circumstances it is more appropriate. | |
174 | 175 |
175 @example | 176 @example |
176 @group | 177 @group |
177 (listp '(1)) | 178 (listp '(1)) |
178 @result{} t | 179 @result{} t |
190 | 191 |
191 @example | 192 @example |
192 (listp @var{object}) @equiv{} (not (nlistp @var{object})) | 193 (listp @var{object}) @equiv{} (not (nlistp @var{object})) |
193 @end example | 194 @end example |
194 @end defun | 195 @end defun |
196 | |
197 @defun true-list-p object | |
198 This function returns @code{t} if @var{object} is an acyclic, | |
199 @code{nil}-terminated (ie, not dotted), list. Otherwise it returns | |
200 @code{nil}. @code{listp} is faster. | |
195 | 201 |
196 @defun null object | 202 @defun null object |
197 This function returns @code{t} if @var{object} is @code{nil}, and | 203 This function returns @code{t} if @var{object} is @code{nil}, and |
198 returns @code{nil} otherwise. This function is identical to @code{not}, | 204 returns @code{nil} otherwise. This function is identical to @code{not}, |
199 but as a matter of clarity we use @code{null} when @var{object} is | 205 but as a matter of clarity we use @code{null} when @var{object} is |