Hoogle Search

Within LTS Haskell 24.16 (ghc-9.10.3)

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

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

    hashmap Data.HashMap

    Map a function over all values in the map.

  2. map :: (Hashable b, Ord b) => (a -> b) -> Set a -> Set b

    hashmap Data.HashSet

    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

  3. map :: (Unbox a, Unbox b) => (a -> b) -> Histogram bin a -> Histogram bin b

    histogram-fill Data.Histogram

    No documentation available.

  4. map :: forall (v :: Type -> Type) a b bin . (Vector v a, Vector v b) => (a -> b) -> Histogram v bin a -> Histogram v bin b

    histogram-fill Data.Histogram.Generic

    fmap lookalike. It's not possible to create Functor instance because of type class context.

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

    hledger-web Hledger.Web.Import

    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) -> [a] <-> [b]

    invertible Data.Invertible.List

    Apply a bijection over a list using map.

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

    invertible Data.Invertible.Prelude

    Apply a bijection over a list using map.

  8. map :: forall (m :: Type -> Type) a b . Monad m => (a -> b) -> Stream m a -> Stream m b

    leveldb-haskell Data.Stream.Monadic

    No documentation available.

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

    miso Miso.String

    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.

  10. map :: (Ord k, Ord v1, Ord v2) => (v1 -> v2) -> SetMultimap k v1 -> SetMultimap k v2

    more-containers Data.Multimap.Set

    O(n * log n) Maps over the multimap's values. This function is useful since Set is not a functor.

Page 27 of many | Previous | Next