2.  Lambda Expressions, Procedures  

(lambda formals body)

See R^4RS.

(procedure-lambda procedure)

Returns a copy of the lambda expression which has been evaluated to create the given procedure.
Example:

(define (square x) (* x x))
(procedure-lambda square)        ==>  (lambda (x) (* x x))

(procedure? obj)

See R^4RS.

(primitive? obj)

Returns #t if obj is a primitive procedure, #f otherwise.

(compound? obj)

Returns #t if obj is a compound procedure (a procedure that has been created by evaluating a lambda expression), #f otherwise.


Markup created by unroff 1.0,    September 24, 1996,    net@informatik.uni-bremen.de