Functional Programing Paradigm Example
Function for computing the average of two numbers:
(defun avg(X Y) (/ (+ X Y) 2.0))
Function is called by:
> (avg 10.0 20.0)
Function returns:
15.0