Understanding functional programming

As we saw in Chapter 3, Understanding Programming Paradigms in Kotlin, functional programming is a declarative programming paradigm in which programs are expressed using pure mathematical functions. In this section, we'll examine what this means in practice and why you might want to embrace functional programming with Kotlin.