Hoogle Search
Within LTS Haskell 24.45 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
ConcatMapUInner :: o -> i -> ConcatMapUState o istreamly-core Streamly.Internal.Data.Stream No documentation available.
ConcatMapUOuter :: o -> ConcatMapUState o istreamly-core Streamly.Internal.Data.Stream No documentation available.
-
streamly-core Streamly.Internal.Data.Stream No documentation available.
-
streamly-core Streamly.Internal.Data.Stream Map a stream producing function on each element of the stream and then flatten the results into a single stream.
>>> concatMap f = Stream.concatMapM (return . f) >>> concatMap f = Stream.concat . fmap f >>> concatMap f = Stream.unfoldMany (Unfold.lmap f Unfold.fromStream)
See unfoldMany for a fusible alternative. -
streamly-core Streamly.Internal.Data.Stream Map a stream producing function on each element of the stream and then flatten the results into a single stream.
>>> concatMap f = Stream.concatMapM (return . f) >>> concatMap f = Stream.concat . fmap f >>> concatMap f = Stream.unfoldMany (Unfold.lmap f Unfold.fromStream)
See unfoldMany for a fusible alternative. concatMapM :: Monad m => (a -> m (Stream m b)) -> Stream m a -> Stream m bstreamly-core Streamly.Internal.Data.Stream Map a stream producing monadic function on each element of the stream and then flatten the results into a single stream. Since the stream generation function is monadic, unlike concatMap, it can produce an effect at the beginning of each iteration of the inner loop. See unfoldMany for a fusible alternative.
concatMapM :: Monad m => (a -> m (Stream m b)) -> Stream m a -> Stream m bstreamly-core Streamly.Internal.Data.Stream Map a stream producing monadic function on each element of the stream and then flatten the results into a single stream. Since the stream generation function is monadic, unlike concatMap, it can produce an effect at the beginning of each iteration of the inner loop. See unfoldMany for a fusible alternative.
-
streamly-core Streamly.Internal.Data.Stream Apply a function on every two successive elements of a stream. The first argument of the map function is the previous element and the second argument is the current element. When the current element is the first element, the previous element is Nothing. Pre-release
rollingMap2 :: forall (m :: Type -> Type) a b . Monad m => (a -> a -> b) -> Stream m a -> Stream m bstreamly-core Streamly.Internal.Data.Stream Like rollingMap but requires at least two elements in the stream, returns an empty stream otherwise. This is the stream equivalent of the list idiom zipWith f xs (tail xs). Pre-release
rollingMapM :: Monad m => (Maybe a -> a -> m b) -> Stream m a -> Stream m bstreamly-core Streamly.Internal.Data.Stream Like rollingMap but with an effectful map function. Pre-release