fmap
Haskell function on the Functor typeclass. Apply a function to value(s) inside a container without unwrapping. fmap (+1) (Just 5) = Just 6. JavaScript equivalent: [1,2,3].map(x => x+1).
Type signature: fmap :: Functor f => (a -> b) -> f a -> f b. Generic over container type — Maybe, List, Either, IO. Operator form: <$>. (+1) <$> [1,2,3]. Modern equivalent in Rust: Option::map, Result::map, Iterator::map — all the same pattern. TypeScript: Array.prototype.map, Promise.then. fmap laws: identity (fmap id = id), composition (fmap (f . g) = fmap f . fmap g). Foundation for Functor + later Applicative + Monad. Modern FP pattern: build everything via fmap + chain.