Map (higher-order function)
Computer programming function / From Wikipedia, the free encyclopedia
Dear Wikiwand AI, let's keep it short by simply answering these key questions:
Can you list the top facts and stats about Map (higher-order function)?
Summarize this article for a 10 year old
SHOW ALL QUESTIONS
For the abstract data type of the same name, see Map (data structure).
In many programming languages, map is a higher-order function that applies a given function to each element of a collection, e.g. a list or set, returning the results in a collection of the same type. It is often called apply-to-all when considered in functional form.
This article relies largely or entirely on a single source. (November 2012) |
The concept of a map is not limited to lists: it works for sequential containers, tree-like containers, or even abstract containers such as futures and promises.