User Tools


Function KEYWORDP

Syntax

  • keywordp objectgeneralized-boolean

Arguments and Values

Description

Returns true if object is a keyword; otherwise, returns false.

Examples

(keywordp 'elephant)

false

(keywordp 12)

false

(keywordp :|12|)

true

(keywordp :test)

true

(keywordp ':test)

true

(keywordp nil)

false

(keywordp :nil)

true

(keywordp '(:test))

false

(keywordp "hello")

false

(keywordp ":hello")

false

(keywordp '&optional)

false

Side Effects

None.

Affected By

None.

Exceptional Situations

None.

See Also

Notes

None.