comparison lispref/intro.texi @ 70319:5565c9588f39

(nil and t): Add `booleanp' predicate.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 01 May 2006 13:30:59 +0000
parents 067115a6e738
children 0cb3de2796ef
comparison
equal deleted inserted replaced
70318:77201b466c80 70319:5565c9588f39
209 In Emacs Lisp, @code{nil} and @code{t} are special symbols that always 209 In Emacs Lisp, @code{nil} and @code{t} are special symbols that always
210 evaluate to themselves. This is so that you do not need to quote them 210 evaluate to themselves. This is so that you do not need to quote them
211 to use them as constants in a program. An attempt to change their 211 to use them as constants in a program. An attempt to change their
212 values results in a @code{setting-constant} error. @xref{Constant 212 values results in a @code{setting-constant} error. @xref{Constant
213 Variables}. 213 Variables}.
214
215 @defun booleanp object
216 Return non-nil iff @var{object} is one of the two canonical boolean
217 values: @code{t} or @code{nil}.
218 @end defun
214 219
215 @node Evaluation Notation 220 @node Evaluation Notation
216 @subsection Evaluation Notation 221 @subsection Evaluation Notation
217 @cindex evaluation notation 222 @cindex evaluation notation
218 @cindex documentation notation 223 @cindex documentation notation