Next: , Previous: Vector Data, Up: Non-immediate Datatypes


A.2.5.3 Procedures

Guile provides two kinds of procedures: closures, which are the result of evaluating a lambda expression, and subrs, which are C functions packaged up as Scheme objects, to make them available to Scheme programmers.

(There are actually other sorts of procedures: compiled closures, and continuations; see the source code for details about them.)

— Function: SCM scm_procedure_p (SCM x)

Return SCM_BOOL_T iff x is a Scheme procedure object, of any sort. Otherwise, return SCM_BOOL_F.