Languages Features Calendar About Lists Add Language
GitHub icon

Map Functions

Map Functions

Map Functions are a language 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:


Example from Haskell:

class Functor f where fmap :: (a -> b) -> f a -> f b (<$) :: a -> f b -> f a

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub