0 the natural purpose (of something) or the duty (of a person) -- 功能,用途;職責
A thermostat performs the function of controlling temperature. 自動調溫器的功用是控制溫度。
I'm not quite sure what my function is within the company. 我拿不太準自己在公司裡有甚麽職責。
The function of the veins is to carry blood to the heart. 靜脈的功能是將血液輸送回心臟。
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. x是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!