ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   10 Symbols   10.2 Dictionary of Symbols

10.2.4 keywordp Function

Syntax:
keywordp object    generalized-boolean

Arguments and Values:
object - an object.

generalized-boolean - a generalized boolean.

Description:
Returns true if object is a keyword1; otherwise, returns false.

Examples:
 (keywordp 'elephant)  false
 (keywordp 12)  false
 (keywordp :test)  true
 (keywordp ':test)  true
 (keywordp nil)  false
 (keywordp :nil)  true
 (keywordp '(:test))  false
 (keywordp "hello")  false
 (keywordp ":hello")  false
 (keywordp '&optional)  false

See Also:
constantp, keyword, symbolp, symbol-package

Allegro CL Implementation Details:
None.

Home Previous Up Next Table of Contents Index
© Franz Inc. 1998-2012 - File last updated 02-24-2012