Map Functions is an actively used design pattern. 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.

?Years Old

Languages with Map Functions include haskell, javascript

Example from haskell:

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

Example from javascript:


Last updated June 22nd, 2020

Edit Map Functions on GitHub