Languages like Clojure don’t have currying, but PFA, where has Haskell currying and not PFA; Scala has both and Groovy wants you to call methods like curry()
, rcurry()
or ncurry()
and lo! Java (Java13 is latest as of this post) has neither.
This year at Functional Conf 2019, on the Bootcamp day for the JVM track, I took to a live demo of currying and partial function application. Starting with the overview of the concept in Java, I showed a practical DI example, how to make our own curry/uncurry and using PFA showed how to curry library functions. Followed it by live coding in different languages
Code is on https://github.com/DhavalDalal/FunctionalConference-2019-Currying-PFA-Demo.
Slides are on https://www.slideshare.net/DhavalDalal/currying-and-partial-function-application-pfa: