Curried Function in Java
Currying transforms a multi-argument function into a chain of single-argument functions. Here's what that buys you in Java 7 and Java 8 — and where the technique earns its keep.
Tag
2 articles.
Currying transforms a multi-argument function into a chain of single-argument functions. Here's what that buys you in Java 7 and Java 8 — and where the technique earns its keep.
A closure is a function bundled with the environment it captured. Here's how to simulate one in pre-Java 8 code, how Java 8 lambdas make it natural, and the capture rule that trips people up.
Type to search articles and notes.