Currying: Difference between revisions
Content added Content deleted
m (→{{header|Perl 6}}: useless semi-colon) |
(→{{header|ML}}: {{improve|ML|This example is alone in "ML" category. Should it appear under Standard ML or Ocaml?}}) |
||
Line 151: | Line 151: | ||
=={{header|ML}}== |
=={{header|ML}}== |
||
{{improve|ML|This example is alone in "ML" category. Should it appear under [[Standard ML]] or [[Ocaml]]?}} |
|||
Suppose that <code>plus</code> is a function taking two arguments <code>x</code> and <code>y</code> and returning <code>x + y</code>. In the [[ML]] programming language we would define it as follows: |
Suppose that <code>plus</code> is a function taking two arguments <code>x</code> and <code>y</code> and returning <code>x + y</code>. In the [[ML]] programming language we would define it as follows: |
||