Function template for simple output types

If the return value of the function is of a simple type (e.g. numbers, symbols, etc.), then the output template is simply "some expression of that type". For example,

;; sum-of-squares: number number => number
(define (sum-of-squares num1 num2)
In this case, an output template may not be particularly informative, but at least it reminds you that whatever expression you put in the body of the function must return type number.
Last modified: Thu Jan 20 10:16:44 EST 2000
Stephen Bloch /