Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. map :: (a -> b) -> InputStream a -> IO (InputStream b)

    io-streams System.IO.Streams.Combinators

    Maps a pure function over an InputStream. map f s passes all output from s through the function f. Satisfies the following laws:

    Streams.map (g . f) === Streams.map f >=> Streams.map g
    Streams.map id === Streams.makeInputStream . Streams.read
    

  2. map :: (v1 -> v2) -> KeyMap v1 -> KeyMap v2

    autodocodec Autodocodec.Aeson.Compat

    No documentation available.

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

    rio RIO.ByteString

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

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

    rio RIO.ByteString.Lazy

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

  5. map :: (v1 -> v2) -> HashMap k v1 -> HashMap k v2

    rio RIO.HashMap

    Transform this map by applying a function to every value.

  6. map :: (Hashable b, Eq b) => (a -> b) -> HashSet a -> HashSet b

    rio RIO.HashSet

    Transform this set by applying a function to every value. The resulting set may be smaller than the source.

    >>> HashSet.map show (HashSet.fromList [1,2,3])
    HashSet.fromList ["1","2","3"]
    

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

    rio RIO.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, ...]
    
    this means that map id == id

    Examples

    >>> map (+1) [1, 2, 3]
    [2,3,4]
    
    >>> map id [1, 2, 3]
    [1,2,3]
    
    >>> map (\n -> 3 * n + 1) [1, 2, 3]
    [4,7,10]
    

  8. map :: (a -> b) -> Map k a -> Map k b

    rio RIO.Map

    Map a function over all values in the map.

    map (++ "x") (fromList [(5,"a"), (3,"b")]) == fromList [(3, "bx"), (5, "ax")]
    

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

    rio RIO.NonEmpty

    Map a function over a NonEmpty stream.

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

    rio RIO.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, ...]
    
    this means that map id == id

    Examples

    >>> map (+1) [1, 2, 3]
    [2,3,4]
    
    >>> map id [1, 2, 3]
    [1,2,3]
    
    >>> map (\n -> 3 * n + 1) [1, 2, 3]
    [4,7,10]
    

Page 19 of many | Previous | Next