Composition and Currying in Functional Languages
Q. How can two functions be combined to create a new function?
A. By composition. h(x) = g(f(x))
Q. How can a function and one value be combined to create a new function?
A. By currying.
h(x) = f(a, x)
h2(x, y) = f2(a, x, y)
Previous slide
Next slide
Back to first slide
View graphic version