Higher-order functions

Functional programming tends to reuse behaviors, which are declared by functions, to process data. This trend has led to the creation of higher-order functions. In term of functional programming, a function is higher-order if it does at least one of the following:

  • Takes one or more functions as an argument:
  • Returns a function:
  • Does both of these things at the same time:

The most common example of a higher-order function ...

Get Mastering High Performance with Kotlin now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.