3

Functional Programming in Kotlin

Divide each difficulty into as many parts as is feasible and necessary to resolve it.

René Descartes

This chapter covers the fundamentals of functional programming and explains how these conventions are incorporated into Kotlin. It starts with an overview of the principles and benefits of functional programming and moves on to specific topics, such as higher-order functions, lambda expressions, and lazy evaluation, which are essential in functional programming.

Purpose of Functional Programming

As the name implies, functional programming emphasizes the use of functions for application development. Similar to object orientation, where the use of classes and objects is emphasized, functional programming can be ...

Get Kotlin for Android App Development 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.