concept

map

higher-order function in a programming language, which applies a given function element-wise to a collection (most generally, a functor instance)
about

1 total

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.
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.

source ↗

other connections

1 total