ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   13 Characters   13.2 Dictionary of Characters

13.2.7 characterp Function

characterp object    generalized-boolean

Arguments and Values:
object - an object.

generalized-boolean - a generalized boolean.

Returns true if object is of type character; otherwise, returns false.

 (characterp #\a)  true
 (characterp 'a)  false
 (characterp "a")  false
 (characterp 65.)  false
 (characterp #\Newline)  true
 ;; This next example presupposes an implementation 
 ;; in which #\Rubout is an implementation-defined character.
 (characterp #\Rubout)  true

See Also:
character (type and function), typep

 (characterp object) ==(typep object 'character)

Allegro CL Implementation Details:

Home Previous Up Next Table of Contents Index
© Franz Inc. All Rights Reserved - File last updated 2022-07-25