Currying: Difference between revisions
Content added Content deleted
(→{{header|F Sharp|F#}}: Added note about ML similarity) |
|||
Line 430: | Line 430: | ||
=={{header|F Sharp|F#}}== |
=={{header|F Sharp|F#}}== |
||
{{trans|Python}} |
{{trans|Python}} |
||
F# is largely based on ML and has a built-in natural method of defining functions that are curried: |
|||
<lang fsharp>let addN n = (+) n</lang> |
<lang fsharp>let addN n = (+) n</lang> |
||