A higher-order function takes another function as a parameter or returns one. Type (Int) -> Boolean means a function from Int to Boolean. The standard library uses this everywhere: filter, map, fold.
Function as parameter
A higher-order function takes another function as a parameter or returns one. Type (Int) -> Boolean means a function from Int to Boolean. The standard library uses this everywhere: filter, map, fold.