Map (higher-order function): Difference between revisions

Content deleted Content added
clarify for hatnote
Line 3:
{{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 [[Collection (abstract data type)|collection]], e.g. a [[list (computing)|list]] or [[set (abstract data type)|set]], returning the results in a collection of the same type. 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]].