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.

  1. ConcatMapUInner :: o -> i -> ConcatMapUState o i

    streamly-core Streamly.Internal.Data.Stream

    No documentation available.

  2. ConcatMapUOuter :: o -> ConcatMapUState o i

    streamly-core Streamly.Internal.Data.Stream

    No documentation available.

  3. data ConcatMapUState o i

    streamly-core Streamly.Internal.Data.Stream

    No documentation available.

  4. concatMap :: forall (m :: Type -> Type) a b . Monad m => (a -> Stream m b) -> Stream m a -> Stream m b

    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.

  5. concatMap :: forall (m :: Type -> Type) a b . Monad m => (a -> Stream m b) -> Stream m a -> Stream m b

    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.

  6. concatMapM :: Monad m => (a -> m (Stream m b)) -> Stream m a -> Stream m b

    streamly-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.

  7. concatMapM :: Monad m => (a -> m (Stream m b)) -> Stream m a -> Stream m b

    streamly-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.

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

    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

  9. rollingMap2 :: forall (m :: Type -> Type) a b . Monad m => (a -> a -> b) -> Stream m a -> Stream m b

    streamly-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

  10. rollingMapM :: Monad m => (Maybe a -> a -> m b) -> Stream m a -> Stream m b

    streamly-core Streamly.Internal.Data.Stream

    Like rollingMap but with an effectful map function. Pre-release

Page 1091 of many | Previous | Next