September 2023
Intermediate to advanced
470 pages
11h 12m
English
It may be surprising to use other functions as inputs and outputs, but this is one of the most useful techniques in functional programming, so it’s very important to understand it well.
Functions that operate on other functions as input or outputs are called higher-order functions. Any function has a type; they can be used as data, and we can create a new function and return it as a result of another function. Don’t be afraid if all this seems complicated—it can be a bit mind bending at first, but with practice, it will soon become very natural.
A visual diagram, as shown, can help us understand how steps work. Here, actors are creating steps for the scenario to run.
Read now
Unlock full access