Hoogle Search

Within LTS Haskell 24.28 (ghc-9.10.3)

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

  1. mapRefuted :: (a -> b) -> Refuted b -> Refuted a

    decidable Data.Type.Predicate

    Change the target of a Refuted with a contravariant mapping function.

  2. mapAccumLWithKey :: (forall (v :: k1) . () => a -> k2 v -> f v -> (a, g v)) -> a -> MonoidalDMap k2 f -> (a, MonoidalDMap k2 g)

    dependent-monoidal-map Data.Dependent.Map.Monoidal

    O(n). The function mapAccumLWithKey threads an accumulating argument throught the map in ascending order of keys.

  3. mapAccumRWithKey :: (forall (v :: k1) . () => a -> k2 v -> f v -> (a, g v)) -> a -> MonoidalDMap k2 f -> (a, MonoidalDMap k2 g)

    dependent-monoidal-map Data.Dependent.Map.Monoidal

    O(n). The function mapAccumRWithKey threads an accumulating argument through the map in descending order of keys.

  4. mapEitherWithKey :: GCompare k2 => (forall (v :: k1) . () => k2 v -> f v -> Either (g v) (h v)) -> MonoidalDMap k2 f -> (MonoidalDMap k2 g, MonoidalDMap k2 h)

    dependent-monoidal-map Data.Dependent.Map.Monoidal

    O(n). Map keys/values and separate the Left and Right results.

  5. mapKeysWith :: GCompare k2 => (forall (v :: k) . () => k2 v -> f v -> f v -> f v) -> (forall (v :: k) . () => k1 v -> k2 v) -> MonoidalDMap k1 f -> MonoidalDMap k2 f

    dependent-monoidal-map Data.Dependent.Map.Monoidal

    O(n*log n). mapKeysWith c f s is the map obtained by applying f to each key of s. The size of the result may be smaller if f maps two or more distinct keys to the same new key. In this case the associated values will be combined using c.

  6. mapMaybeWithKey :: GCompare k2 => (forall (v :: k1) . () => k2 v -> f v -> Maybe (g v)) -> MonoidalDMap k2 f -> MonoidalDMap k2 g

    dependent-monoidal-map Data.Dependent.Map.Monoidal

    O(n). Map keys/values and collect the Just results.

  7. mapWithKey :: (forall (v :: k1) . () => k2 v -> f v -> g v) -> MonoidalDMap k2 f -> MonoidalDMap k2 g

    dependent-monoidal-map Data.Dependent.Map.Monoidal

    O(n). Map a function over all values in the map.

  8. mapVertices :: (Eq b, Hashable b) => (a -> b) -> DiGraph a -> DiGraph b

    digraph Data.DiGraph

    Map a function over all vertices of a graph.

  9. mapM :: (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b)

    dimensional Numeric.Units.Dimensional.Prelude

    Map each element of a structure to a monadic action, evaluate these actions from left to right, and collect the results. For a version that ignores the results see mapM_.

    Examples

    mapM is literally a traverse with a type signature restricted to Monad. Its implementation may be more efficient due to additional power of Monad.

  10. mapM_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()

    dimensional Numeric.Units.Dimensional.Prelude

    Map each element of a structure to a monadic action, evaluate these actions from left to right, and ignore the results. For a version that doesn't ignore the results see mapM. mapM_ is just like traverse_, but specialised to monadic actions.

Page 287 of many | Previous | Next