May 2024
Intermediate to advanced
560 pages
16h 9m
English
This chapter covers
Lambda expressions, or simply lambdas, are essentially small chunks of code that can be passed to other functions. With lambdas, you can easily extract common code structures into library functions, allowing you to reuse more code and be more expressive while you’re at it. The Kotlin standard library makes heavy use of them. In this chapter, you’ll learn what a lambda is, see examples of some typical use cases for lambda functions, see what they look like in Kotlin, and learn their relationship ...
Read now
Unlock full access