Currying: Difference between revisions

109 bytes added ,  11 years ago
→‎{{header|ML}}: {{improve|ML|This example is alone in "ML" category. Should it appear under Standard ML or Ocaml?}}
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:
 
=={{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:
 
Anonymous user