Hoogle Search

Within LTS Haskell 24.3 (ghc-9.10.2)

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

  1. data Map s k a

    refined-containers Data.Map.Refined

    A wrapper around a regular Map with a type parameter s identifying the set of keys present in the map. A key of type k may not be present in the map, but a Key s k is guaranteed to be present (if the s parameters match). Thus the map is isomorphic to a (total) function Key s k -> a, which motivates many of the instances below. A Map always knows its set of keys, so given Map s k a we can always derive KnownSet s k by pattern matching on the Dict returned by keysSet.

  2. data Map s k a

    refined-containers Data.Map.Strict.Refined

    A wrapper around a regular Map with a type parameter s identifying the set of keys present in the map. A key of type k may not be present in the map, but a Key s k is guaranteed to be present (if the s parameters match). Thus the map is isomorphic to a (total) function Key s k -> a, which motivates many of the instances below. A Map always knows its set of keys, so given Map s k a we can always derive KnownSet s k by pattern matching on the Dict returned by keysSet.

  3. data Map k a

    verset Verset

    A Map from keys k to values a. The Semigroup operation for Map is union, which prefers values from the left operand. If m1 maps a key k to a value a1, and m2 maps the same key to a different value a2, then their union m1 <> m2 maps k to a1.

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

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

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

    base Data.List.NonEmpty

    Map a function over a NonEmpty stream.

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

    base GHC.Base

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

  9. 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.

  10. 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

Page 12 of many | Previous | Next