November 2018
Beginner to intermediate
480 pages
9h 20m
English
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 ...
Read now
Unlock full access