Higher-order function "map" transforms a collection by applying a given function to each element in it. USE [maps] for geography, [map] or [dictionary] for data types.
A map function is a higher-order function that applies a function to each element in a list, building a list of the results. Examples include map
in Python, Scheme, Haskell and Scala, Stream.map
in Java 8, array_map
in PHP, and std::transform
in C++.
A generalized map works with some general type of a collection, applying a function to each element in the collection and building the collection (of the same general type) of the results. An example is fmap
in Haskell, etc.
For questions about geography, use the maps tag instead.
For questions about data types, use the map tag instead, which is a synonym tag for dictionary.