Skip to content

mapStreamM #104

@chessai

Description

@chessai

The following function is useful (i have used it a few times):

mapStreamM :: Monad m => (a -> Stream (Of b) m x) -> Stream (Of a) m r -> Stream (Of b) m r
mapStreamM f = S.concats . S.mapsM (\(a :> s) -> return (f a >> return s)
  1. Do people think this would be a good addition
  2. Is there a better implementation
  3. Is there a better name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions