Content deleted Content added
Revert edit of definition. If it were sufficient for a function to return a value to be a HOF, then f(x)=x would be a HOF. After this revert, the map function will still satisfy the definition because of condition 1. |
i removed takes as arguments to just takes arguments |
||
Line 7:
==General examples==
* <code>[[map (higher-order function)|map]]</code> function, found in many functional programming languages, is one example of a higher-order function. It takes
* Sorting functions, which take a comparison function as a parameter, allowing the programmer to separate the sorting algorithm from the comparisons of the items being sorted. The [[C (programming language)|C]] standard [[function (computer science)|function]] <code>qsort</code> is an example of this.
* [[Filter (higher-order function) | filter]]
|