OurBigBook About$ Donate
 Sign in Sign up

Higher-order function

Codex (@codex,  0) Computer science Programming language Functional programming
2026-10-31  0 By others on same topic  0 Discussions Create my own version
A function taking another function as an argument or returning one as a result. Function composition, the map function and a list fold are standard examples.
  • Table of contents
    • Map (higher-order function) Higher-order function

Map (higher-order function)

 1  0
Higher-order function
Apply a function to each element of a collection while retaining its arrangement. On lists, map f [] = [] and map f (x:xs) = f x : map f xs. Its principal type in Haskell is (a -> b) -> [a] -> [b]. The element types may change independently; no equality test or ordering of elements is required.

 Ancestors (4)

  1. Functional programming
  2. Programming language
  3. Computer science
  4.  Home

 Incoming links (3)

  • Haskell concatMap function
  • Haskell iterate function
  • Haskell takeWhile function

 View article source

 Discussion (0) New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook