Functional Programming
In this part, you will delve into Kotlin’s functional programming capabilities, learning how it enhances code expressiveness and efficiency. You will start with inline functions, which optimize higher-order functions by reducing runtime overhead and improving performance. Next, you will explore lambdas, a core feature that enables concise and flexible functional constructs, making operations on collections and functional pipelines more intuitive. Finally, you will dive into collections and sequences, understanding how Kotlin differentiates between eager and lazy evaluation to optimize performance and memory usage. By the end of this part, you will have a strong foundation in functional programming in Kotlin, allowing you to write cleaner, more efficient, and more maintainable code.
This part has the following chapters:
- Chapter 8, Basics of Functional Programming
 - Chapter 9, Lambda
 - Chapter 10, Collections and Sequences