Functions
摘要
The need for repeatable sets of instructions was recognized early in computing history. The 1950s onwards saw languages developed (such as FORTRAN or ALGOL) that supported procedures. Procedures (also known as routines or sub-routines) are reusable series of computational steps that have a mechanism for passing control to and from them. The formal mathematical basis for this kind of computation – Lambda Calculus – was developed in the 1930s by Alonzo Church. Church’s work was based on the mathematical concept of functions, which are a way of conceptualizing dependencies between variables. In mathematics, functions take values (as input), perform operations, and return new values (as output).