map -package:containers -package:foldl -package:incipit-base -package:base-compat -package:basement -package:charset -package:dlist -package:ghc -package:insert-ordered-containers -package:case-insensitive -package:psqueues -package:monoidal-containers -package:integration -package:base-compat-batteries -package:Cabal-syntax -package:regex-tdfa -package:os-string -package:conduit -package:pipes -is:exact -package:imports -package:hedgehog -package:unordered-containers -package:text -package:singletons-base -package:bloodhound

Map a function over all values in the map.
map f xs is the list obtained by applying f to each element of xs, i.e.,
map f [x1, x2, ..., xn] == [f x1, f x2, ..., f xn]
map f [x1, x2, ...] == [f x1, f x2, ...]
>>> map (+1) [1, 2, 3]
[2,3,4]
Map a function over a NonEmpty stream.
Combinator for the <map> element. Example:
map $ span $ toHtml "foo"
Result:
<map><span>foo</span></map>
O(n) map f xs is the ByteString obtained by applying f to each element of xs.
O(n) map f xs is the ByteString obtained by applying f to each element of xs
O(n) map f xs is the ShortByteString obtained by applying f to each element of xs.
Apply function to every element of matrix
O(n) map f xs is the ShortByteString obtained by applying f to each element of xs.
Apply a bijection over a list using map.
O(n) Map a function over a vector.
Map a function over a Bundle
Map a function over a Bundle
O(n) Map a function over a vector.
O(n) Map a function over a vector.
O(n) Map a function over a vector.
O(n) Map a function over a vector.
Map a function over a Stream
Type-level fmap for type-level functors. Note: this name clashes with Map from containers. FMap is provided as a synonym to avoid this.

Example

>>> data Example where Ex :: a -> Example  -- Hide the type of examples to avoid brittleness in different GHC versions

>>> data AddMul :: Nat -> Nat -> Exp Nat

>>> type instance Eval (AddMul x y) = (x TL.+ y) TL.* (x TL.+ y)

>>> :kind! Ex (Eval (Map (AddMul 2) '[0, 1, 2, 3, 4]) :: [Nat])
Ex (Eval (Map (AddMul 2) '[0, 1, 2, 3, 4]) :: [Nat]) :: Example
= Ex [4, 9, 16, 25, 36]
Hash-table, based on STM-specialized Hash Array Mapped Trie.
Invariant preserving version of Map from the containers packages, suitable for use with Uniplate. Use toMap to construct values, and fromMap to deconstruct values.
Monadic variant of mapAccumL.