sequence package:streamly-core

Deprecated: Use "rmapM id" instead
>>> sequence = Stream.mapM id
Replace the elements of a stream of monadic actions with the outputs of those actions.
>>> s = Stream.fromList [putStr "a", putStr "b", putStrLn "c"]

>>> Stream.fold Fold.drain $ Stream.sequence s
abc
sequence f p collects sequential parses of parsers in a serial stream p using the fold f. Fails if the input ends or any of the parsers fail. Pre-release
Returns True if all the elements of the first stream occur, in order, in the second stream. The elements do not have to occur consecutively. A stream is a subsequence of itself.
>>> Stream.isSubsequenceOf (Stream.fromList "hlo") (Stream.fromList "hello" :: Stream IO Char)
True
concatSequence f t applies folds from stream t sequentially and collects the results using the fold f. Unimplemented
Match if the input stream is a subsequence of the argument stream i.e. all the elements of the input stream occur, in order, in the argument stream. The elements do not have to occur consecutively. A sequence is considered a subsequence of itself.
Apply a stream of folds to an input stream and emit the results in the output stream. Unimplemented
Apply a stream of parsers to an input stream and emit the results in the output stream. Unimplemented