All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is First-class function, higher-order function?

Also known as: first-class function · higher-order function

Definition 9.1 University Computer Science — Year 2 · Chapter 9 — Functional Programming

Functions are first-class in a language if they are values: stored in variables and data structures, passed as arguments, returned as results. A higher-order function takes a function as argument or returns one.

Read in context →