FMAP
Fmap is a function in functional programming, most closely associated with Haskell's Functor type class, that applies a function to the value inside a container or context without changing the container’s structure. It allows you to lift a plain function to operate on values wrapped in a functor.
In Haskell, fmap has the type fmap :: Functor f => (a -> b) -> f a -> f b. A
Common examples illustrate its behavior. For Maybe a, fmap f Nothing = Nothing and fmap f (Just x)
Fmap is governed by functor laws. The identity law states that fmap id = id, meaning mapping the
Beyond Haskell, the concept appears in other languages via map-like operations on container types, such as List.map,