Next: , Previous: , Up: Binding Constructs   [Contents][Index]

6.10.4 Querying variable bindings

Guile provides a procedure for checking whether a symbol is bound in the top level environment.

Scheme Procedure: defined? sym [module]
C Function: scm_defined_p (sym, module)

Return #t if sym is defined in the module module or the current module when module is not specified; otherwise return #f.