;; average-of-three.sal -- example function with local variables ;; (c) 2008 by Roger B. Dannenberg define function average-of-three(n1, n2, n3) begin with sum = (n1 + n2 + n3) return list(quote(the), quote(average), quote(of), n1, n2, n3, quote(is), sum / 3.0) end print average-of-three(1, 2.5, 4)