0 the natural purpose (of something) or the duty (of a person): --
A thermostat performs the function of controlling temperature.
1 an official ceremony or a formal social event, such as a party or a special meal, at which a lot of people are usually present: --
3 a process that a computer or a computer program uses to complete a task: --
4 something that results from something else, or is the way it is because of something else: --
5 (in mathematics) a quantity whose value depends on another value and changes with that value: --
x is a function of y.
How to use polymorphism when passing functions as arguments (section 9).
When the finite domain of a function is the product of several finite sets, we realise the function in its curried form.
An example of safe producer is the function, double.
What if e was a partial application of a function?
Higher order functions are also a common concept in functional programming.
The filter function is a (standard) higher-order auxiliary.
The above reasoning may not apply if the primitive application occurs within the body of a function.
If you are not clear on what a function should do, you will find it difficult to write it!