As discussed in Chapter 6, page , normally a function's execution proceeds until the last statement of the function. If that statement is an expression then the value of the expression becomes the result of the function call; otherwise the result is F. A function can also prematurely terminate using the return statement, which has two forms:
returnThe first form results in a returned value of F; the second form returns the value of expression.return expression
See Chapter 6, page , for examples.