Module
Pipes.Util
- Package
- purescript-node-stream-pipes
- Repository
- cakekindel/purescript-node-stream-pipes
#intersperse Source
intersperse :: forall m a. MonadEffect m => a -> Pipe (Maybe a) (Maybe a) m UnitYields a separator value sep between received values
toList $ (yield "a" *> yield "b" *> yield "c") >-> intersperse ","
-- "a" : "," : "b" : "," : "c" : Nil
#InvokeResult Source
data InvokeResult :: Type -> Type -> (Type -> Type) -> Typedata InvokeResult a b m
The result of a single step forward of a pipe.
Constructors
DidNotYield (Pipe a b m Unit)Yielded ((NonEmptyList b) /\ (Pipe a b m Unit))The pipe
awaited the value, andyielded 1 or more responses.ExitedThe pipe
awaited the value, and exited.
#IntermediateInvokeResult Source
data IntermediateInvokeResult :: Type -> Type -> (Type -> Type) -> Typedata IntermediateInvokeResult a b m
Constructors
IDidNotYield (Pipe a b m Unit)IYielded ((NonEmptyList b) /\ (Pipe a b m Unit))IDidNotAwait (Pipe a b m Unit)
The pipe
awaited the value, but did notyielda response.