boundp
boundp symbol → generalized-boolean
symbol—a symbol.
generalized-boolean—a generalized boolean.
7.1.1 18Returns true if symbol is bound; otherwise, returns false.
(setq x 1) → 1 (boundp 'x) → true (makunbound 'x) → X (boundp 'x) → false (let ((x 2)) (boundp 'x)) → false (let ((x 2)) (declare (special x)) (boundp 'x)) → true
None.
Should signal an error of type type-error if symbol is not a symbol.
set, setq, symbol-value, makunbound
I see no lexical environment here. --sjl 16 Mar 92
The \term{lexical environment} is ignored.The function boundp determines only whether a symbol has a value in the global environment; any lexical bindings are ignored.