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 ...

Get Kotlin Design Patterns and Best Practices - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.