Content deleted Content added
m c/e |
→Overview: Use available symbols (words). Tags: Mobile edit Mobile web edit |
||
Line 86:
The notation for function application is simply juxtaposition, as in <code>sin x</code>.
In Miranda, as in most other purely functional languages, functions are [[first-class function|first-class]] citizens, which is to say that they can be passed as [[parameter (computer science)|
<syntaxhighlight lang="haskell">
Line 95:
is a roundabout way of creating a function "increment" which adds one to its argument. In reality, <code>add 4 7</code> takes the two-parameter function <code>add</code>, applies it to <code>4</code> obtaining a single-parameter function that adds four to its argument, then applies that to <code>7</code>.
Any function
Thus:
|