Introduction to
Functions
•A function then can be thought of as an instruction to perform some algorithm and then plug the result in where the function was
•Functions in older
programming languages are often
called “subroutines” or “procedures” a terms which capture the idea of a function containing an algorithm.