PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Map Functions

Map Functions

Map Functions are a feature.

Map is the name of a higher-order function that applies a given function to each element of a functor, e.g. a list, returning a list of results in the same order.


Languages with Map Functions include JavaScript, Haskell

Example from JavaScript:
[1,2.1].map(Math.round)
Example from Haskell:
class Functor f where fmap :: (a -> b) -> f a -> f b (<$) :: a -> f b -> f a
manual-memory-management-feature.html 路 map-functions-feature.html 路 method-chaining-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 29 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com