Chapter 5: Introducing Functional Programming
This chapter will discuss the fundamental principles of functional programming and how they fit into the Kotlin programming language.
As you'll discover, we've already touched on some of the concepts in this chapter, as it would have been hard to discuss the benefits of the language up until now without touching on functional programming concepts such as data immutability and functions as values. But as we did before, we'll look at those features from a different angle.
In this chapter, we will cover the following topics:
- Reasoning behind the functional approach
- Immutability
- Functions as values
- Expressions, not statements
- Recursion
After completing this chapter, you'll understand how the concepts of functional programming are embedded in the Kotlin language and when to use them.