Higher order functions
Lambda
Closures
With and apply
In Chapter 2, we discussed the mechanics of Kotlin functions, and you’ve already seen how similar they are to Java functions; you’ve also seen how different they are. In this chapter, we’ll get back to the discussion of functions, but a different kind of function—the kind that supports functional programming. You may have used lambdas in Java 8; similarly, Kotlin also has support for lambdas. In this chapter, we’ll explore these two topics.
Higher Order Functions
Higher order functions ...