Skip to Content
Programming Languages: Concepts and Implementation
book

Programming Languages: Concepts and Implementation

by Saverio Perugini
December 2021
Beginner
840 pages
47h 29m
English
Jones & Bartlett Learning
Content preview from Programming Languages: Concepts and Implementation

8.4 Putting It All Together: Higher-Order Functions

Curried functions and partial function application open up new possibilities in programming, especially with respect to higher-order functions (HOFs). Recall that a higher-order function, such as map in Scheme, is a function that either accepts functions as arguments or returns a function as a value, or both. Such functions capture common, typically recursive, programming patterns as functions. They provide the glue that enables us to combine simple functions to make more complex functions. The use of curried HOFs lifts us to the third layer of functional programming: More Efficient and Abstract Functional Programming (Figure 5.10).

Most HOFs are curried, which makes them powerful and flexible. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Concepts and Semantics of Programming Languages 1

Concepts and Semantics of Programming Languages 1

Therese Hardin, Mathieu Jaume, Francois Pessaux, Veronique Viguie Donzeau-Gouge
Programming C# 10

Programming C# 10

Ian Griffiths

Publisher Resources

ISBN: 9781284222739