Hoogle Search
Within LTS Haskell 24.18 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapM_ :: Monad m => (a -> m b) -> SerialT m a -> m ()streamly Streamly.Internal.Data.Stream.IsStream mapM_ = Stream.drain . Stream.mapM
Apply a monadic action to each element of the stream and discard the output of the action. This is not really a pure transformation operation but a transformation followed by fold.-
streamly Streamly.Internal.Data.Stream.IsStream Map a Maybe returning function to a stream, filter out the Nothing elements, and return a stream of values extracted from Just. Equivalent to:
mapMaybe f = Stream.map fromJust . Stream.filter isJust . Stream.map f
mapMaybeM :: (IsStream t, MonadAsync m, Functor (t m)) => (a -> m (Maybe b)) -> t m a -> t m bstreamly Streamly.Internal.Data.Stream.IsStream Like mapMaybe but maps a monadic function. Equivalent to:
mapMaybeM f = Stream.map fromJust . Stream.filter isJust . Stream.mapM f
Concurrent (do not use with fromParallel on infinite streams)mapM_ :: Monad m => (a -> m b) -> SerialT m a -> m ()streamly Streamly.Prelude mapM_ = Stream.drain . Stream.mapM
Apply a monadic action to each element of the stream and discard the output of the action. This is not really a pure transformation operation but a transformation followed by fold.-
streamly Streamly.Prelude Map a Maybe returning function to a stream, filter out the Nothing elements, and return a stream of values extracted from Just. Equivalent to:
mapMaybe f = Stream.map fromJust . Stream.filter isJust . Stream.map f
mapMaybeM :: (IsStream t, MonadAsync m, Functor (t m)) => (a -> m (Maybe b)) -> t m a -> t m bstreamly Streamly.Prelude Like mapMaybe but maps a monadic function. Equivalent to:
mapMaybeM f = Stream.map fromJust . Stream.filter isJust . Stream.mapM f
Concurrent (do not use with fromParallel on infinite streams)mapMaybe :: (a -> Maybe b) -> [a] -> [b]strict-base-types Data.Maybe.Strict Analogous to mapMaybe in Data.Maybe.
mapM_ :: (Monad m, Unboxable a) => (a -> m b) -> Vector a -> m ()unboxing-vector Data.Vector.Unboxing No documentation available.
mapMaybe :: (Unboxable a, Unboxable b) => (a -> Maybe b) -> Vector a -> Vector bunboxing-vector Data.Vector.Unboxing No documentation available.
mapMaybe :: Interval k e => (a -> Maybe b) -> IntervalMap k a -> IntervalMap k bIntervalMap Data.IntervalMap.Generic.Lazy O(n). Map values and collect the Just results.