Hoogle Search

Within LTS Haskell 13.7 (ghc-8.6.3)

  1. map :: (a -> b) -> [a] -> [b]

    base Prelude

    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, ...]
    

  2. map :: (a -> b) -> [a] -> [b]

    base Data.List

    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, ...]
    

  3. map :: (a -> b) -> NonEmpty a -> NonEmpty b

    base Data.List.NonEmpty

    Map a function over a NonEmpty stream.

  4. map :: (a -> b) -> [a] -> [b]

    base GHC.List

    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, ...]
    

  5. map :: (a -> b) -> [a] -> [b]

    base GHC.OldList

    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, ...]
    

  6. map :: (Word8 -> Word8) -> ByteString -> ByteString

    bytestring Data.ByteString

    O(n) map f xs is the ByteString obtained by applying f to each element of xs.

  7. map :: (Char -> Char) -> ByteString -> ByteString

    bytestring Data.ByteString.Char8

    O(n) map f xs is the ByteString obtained by applying f to each element of xs

  8. map :: (Word8 -> Word8) -> ByteString -> ByteString

    bytestring Data.ByteString.Lazy

    O(n) map f xs is the ByteString obtained by applying f to each element of xs.

  9. map :: (Char -> Char) -> ByteString -> ByteString

    bytestring Data.ByteString.Lazy.Char8

    O(n) map f xs is the ByteString obtained by applying f to each element of xs

  10. map :: (Char -> Char) -> Text -> Text

    text 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!"
    
    Subject to fusion. Performs replacement on invalid scalar values.

Page 1 of many | Next