Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapMaybeWithKey :: (k -> v1 -> Maybe v2) -> InsOrdHashMap k v1 -> InsOrdHashMap k v2insert-ordered-containers Data.HashMap.Strict.InsOrd No documentation available.
mapM_ :: Monad m => (a -> m x) -> Stream (Of a) m r -> m rstreaming Streaming.Prelude Reduce a stream to its return value with a monadic action.
>>> S.mapM_ Prelude.print $ each [1..3] 1 2 3
>>> rest <- S.mapM_ Prelude.print $ S.splitAt 3 $ each [1..10] 1 2 3 >>> S.sum rest 49 :> ()
-
streaming Streaming.Prelude The mapMaybe function is a version of map which can throw out elements. In particular, the functional argument returns something of type Maybe b. If this is Nothing, no element is added on to the result Stream. If it is Just b, then b is included in the result Stream.
mapMaybeM :: Monad m => (a -> m (Maybe b)) -> Stream (Of a) m r -> Stream (Of b) m rstreaming Streaming.Prelude Map monadically over a stream, producing a new stream only containing the Just values.
mapMaybe :: Filterable f => (a -> Maybe b) -> f a -> f bwitherable Witherable Like mapMaybe.
mapM_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()base-compat-batteries Control.Monad.Compat 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.
mapM_ :: Monad m => (time -> m ()) -> (body -> m ()) -> T time body -> m ()event-list Data.EventList.Absolute.TimeBody No documentation available.
mapMaybe :: Num time => (body0 -> Maybe body1) -> T time body0 -> T time body1event-list Data.EventList.Absolute.TimeBody No documentation available.
mapM_ :: Monad m => (time -> m ()) -> (body -> m ()) -> T time body -> m ()event-list Data.EventList.Absolute.TimeTime No documentation available.
mapMaybe :: Num time => (body0 -> Maybe body1) -> T time body0 -> T time body1event-list Data.EventList.Absolute.TimeTime No documentation available.