Anonymous user
Currying: Difference between revisions
m
no edit summary
(removed ML, added ocaml) |
mNo edit summary |
||
Line 374:
=={{header|OCaml}}==
OCaml has a built-in natural method of defining functions that are
<lang ocaml>let addnums x y = x+y (* declare a
let add1 = addnums 1 (* bind the first argument to get another function *)
Line 525:
=={{header|Standard ML}}==
Standard ML has a built-in natural method of defining functions that are
<lang sml>fun addnums (x:int) y = x+y (* declare a
val add1 = addnums 1 (* bind the first argument to get another function *)
|