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