Functions & Programming Concepts · Level 2 of 5
Higher-Order Function
A function that accepts functions as inputs or returns a function.
Functions can be manipulated as values to compose behavior.
Example
A sorting routine receives a callable that extracts each item's key.
Listen to the definition and example
Audio transcript
Higher-Order Function. A function that accepts functions as inputs or returns a function. Functions can be manipulated as values to compose behavior. For example: A sorting routine receives a callable that extracts each item's key.
Explore this concept
Why it matters
This helps you distinguish a computation’s contract, inputs, outputs, and behavior.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.