Content deleted Content added
m Removing link(s): Wikipedia:Miscellany for deletion/Portal:Computer science (Xunlink) |
This article linked to "functor" in the sense of category theory, which is incorrect. The correct definition (in the sense of functional programming) does not yet exist in Wikipedia, so I linked to the disambiguation page as a temporary placeholder. |
||
Line 2:
{{one source|date=November 2012}}
In many [[programming language]]s, '''map''' is the name of a [[higher-order function]] that applies a [[procedural parameter|given function]] to each element of a [[Functor (disambiguation)|functor]], e.g. a [[list (computing)|list]], returning a list of results in the same order. It is often called ''apply-to-all'' when considered in [[functional form]].
The concept of a map is not limited to lists: it works for sequential [[Container (abstract data type)|containers]], tree-like containers, or even abstract containers such as [[futures and promises]].
|