Anonymous Functions with LAMBDA
; Creating and using a named procedure:
> (define (cube x) (* x x x))
; Creating and using an unnamed procedure:
> ((lambda (x) (* x x x)) 5)
Benefits of unnamed procedures:
-- Can help achieve locality of reference,
-- Might help keep the name space “unpolluted”