Hoogle Search
Within LTS Haskell 22.21 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
map :: (Word8 -> Word8) -> ShortByteString -> ShortByteStringbytestring Data.ByteString.Short O(n) map f xs is the ShortByteString obtained by applying f to each element of xs.
map :: (Word8 -> Word8) -> ShortByteString -> ShortByteStringbytestring Data.ByteString.Short.Internal O(n) map f xs is the ShortByteString obtained by applying f to each element of xs.
map :: (Char -> Char) -> Text -> Texttext Data.Text O(n) map f t is the Text obtained by applying f to each element of t. Example:
>>> let message = pack "I am not angry. Not at all." >>> T.map (\c -> if c == '.' then '!' else c) message "I am not angry! Not at all!"
Performs replacement on invalid scalar values.map :: (Char -> Char) -> Stream Char -> Stream Chartext Data.Text.Internal.Fusion.Common O(n) map f xs is the Stream Char obtained by applying f to each element of xs. Properties
unstream . map f . stream = map f
map :: (Char -> Char) -> Text -> Texttext Data.Text.Lazy O(n) map f t is the Text obtained by applying f to each element of t. Performs replacement on invalid scalar values.
map :: (a -> b) -> IntMap a -> IntMap bcontainers Data.IntMap.Internal Map a function over all values in the map.
map (++ "x") (fromList [(5,"a"), (3,"b")]) == fromList [(3, "bx"), (5, "ax")]
map :: (a -> b) -> IntMap a -> IntMap bcontainers Data.IntMap.Lazy Map a function over all values in the map.
map (++ "x") (fromList [(5,"a"), (3,"b")]) == fromList [(3, "bx"), (5, "ax")]
map :: (a -> b) -> IntMap a -> IntMap bcontainers Data.IntMap.Strict Map a function over all values in the map.
map (++ "x") (fromList [(5,"a"), (3,"b")]) == fromList [(3, "bx"), (5, "ax")]
map :: (a -> b) -> IntMap a -> IntMap bcontainers Data.IntMap.Strict.Internal Map a function over all values in the map.
map (++ "x") (fromList [(5,"a"), (3,"b")]) == fromList [(3, "bx"), (5, "ax")]
map :: (Key -> Key) -> IntSet -> IntSetcontainers Data.IntSet map f s is the set obtained by applying f to each element of s. It's worth noting that the size of the result may be smaller if, for some (x,y), x /= y && f x == f y