CLCS
Function

symbolp

symbolp objectgeneralized-boolean

Arguments and Values

objectan object.
generalized-booleana generalized boolean.

Description

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

Examples

 (symbolp 'elephant) ⇒  true
 (symbolp 12) ⇒  false
 (symbolp nil) ⇒  true
 (symbolp '()) ⇒  true
 (symbolp :test) ⇒  true
 (symbolp "hello") ⇒  false

See Also

keywordp, symbol, typep

Notes

 (symbolp object) ≡ (typep object 'symbol)