O'Reilly logo

Kotlin Programming: The Big Nerd Ranch Guide, First Edition by David Greenhalgh, Josh Skeen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Function Categories

There are three broad categories of functions that compose a functional program: transforms, filters, and combines. Each category is designed to work on collection data structures to yield a final result. Functions in functional programming are also designed to be composable, meaning that simple functions can be combined to build complex behavior.

Transforms

The first category of function in functional programming is transforms. A transform function works on the contents of a collection by walking through the collection and transforming each item with a transformer function provided as an argument. The transform function then returns a copy of the modified collection, and execution proceeds to the next ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required