keywordp (ANSI and GNU Common Lisp Document)

Next: make-symbol, Previous: symbolp, Up: Symbols Dictionary

#### 10.2.4 keywordp [Function]

`keywordp` object ⇒ generalized-boolean

#### Arguments and Values::

object—an object.

generalized-boolean—a generalized boolean.

#### Description::

Returns true if object is a keyword_1; 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