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