Module
Pipes.Prelude
- Package
- purescript-pipes
- Repository
- felixSchl/purescript-pipes
#replicateM Source
replicateM :: forall m a. Monad m => Int -> m a -> Producer_ a m Unit
Repeat a monadic action a fixed number of times, yield
ing each result
#mapFoldable Source
mapFoldable :: forall r t m b a. Monad m => Foldable t => (a -> t b) -> Pipe a b m r
Apply a function to all values flowing downstream, and
#takeWhile' Source
takeWhile' :: forall m a. Monad m => (a -> Boolean) -> Pipe a a m a
takeWhile'
is a version of takeWhile
that returns the value failing
#findIndices Source
findIndices :: forall r m a. Monad m => (a -> Boolean) -> Pipe a Int m r
Outputs the indices of all elements that satisfied the predicate