map -package:Cabal-syntax -package:ghc -is:exact -package:base -package:Cabal-syntax is:exact
Apply a function to each element, returning any other valid
ListLike.
rigidMap will always be at least as fast, if
not faster, than this function and is recommended if it will work for
your purposes. See also
mapM.
Apply a function uniformly over all elements of a sequence.
Map a function over all values in the map.
Map all element a from a block to a new block of b
Map all elements in a list
O(n*log n) Map a function over all the left keys in the map.
Version 0.3
Combinator for the
<map> element.
Example:
map $ span $ toHtml "foo"
Result:
<map><span>foo</span></map>
Map over bytes in a sequence. The result has the same length as the
argument.
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.
Transform the original string-like value but keep it case insensitive.
"
map f xs" is the vector obtained by applying
f
to each element of
xs, i.e.,
map f (x1 :> x2 :> ... :> xn :> Nil) == (f x1 :> f x2 :> ... :> f xn :> Nil)
and corresponds to the following circuit layout:
Apply a transformation to all values in a stream.
Subject to fusion
Apply a transformation to all values in a stream.
Subject to fusion
Since 0.3.0