Hoogle Search
Within LTS Haskell 24.57 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
many :: MonadPlus m => m a -> m [a]shellwords Text.Megaparsec.Compat many p applies the parser p zero or more times and returns a list of the values returned by p.
identifier = (:) <$> letter <*> many (alphaNumChar <|> char '_')
manyTill :: MonadPlus m => m a -> m end -> m [a]shellwords Text.Megaparsec.Compat manyTill p end applies parser p zero or more times until parser end succeeds. Returns the list of values returned by p. Note that end result is consumed and lost. Use manyTill_ if you wish to keep it. See also: skipMany, skipManyTill.
manyTill_ :: MonadPlus m => m a -> m end -> m ([a], end)shellwords Text.Megaparsec.Compat manyTill_ p end applies parser p zero or more times until parser end succeeds. Returns the list of values returned by p and the end result. Use manyTill if you have no need in the result of the end. See also: skipMany, skipManyTill.
skipMany :: MonadPlus m => m a -> m ()shellwords Text.Megaparsec.Compat skipMany p applies the parser p zero or more times, skipping its result. See also: manyTill, skipManyTill.
skipManyTill :: MonadPlus m => m a -> m end -> m endshellwords Text.Megaparsec.Compat skipManyTill p end applies the parser p zero or more times skipping results until parser end succeeds. Result parsed by end is then returned. See also: manyTill, skipMany.
ManyWorkers :: Int -> Count -> Workstreamly Streamly.Internal.Data.Channel No documentation available.
ManyWorkers :: Int -> Count -> Workstreamly Streamly.Internal.Data.SVar No documentation available.
foldMany :: forall t (m :: Type -> Type) a b . (IsStream t, Monad m) => Fold m a b -> t m a -> t m bstreamly Streamly.Internal.Data.Stream.IsStream Apply a Fold repeatedly on a stream and emit the fold outputs in the output stream. To sum every two contiguous elements in a stream:
>>> f = Fold.take 2 Fold.sum >>> Stream.toList $ Stream.foldMany f $ Stream.fromList [1..10] [3,7,11,15,19]
On an empty stream the output is empty:>>> Stream.toList $ Stream.foldMany f $ Stream.fromList [] []
Note Stream.foldMany (Fold.take 0) would result in an infinite loop in a non-empty stream.-
streamly Streamly.Internal.Data.Stream.IsStream Like foldMany but appends empty fold output if the fold and stream termination aligns:
>>> f = Fold.take 2 Fold.sum >>> Stream.toList $ Stream.foldManyPost f $ Stream.fromList [] [0] >>> Stream.toList $ Stream.foldManyPost f $ Stream.fromList [1..9] [3,7,11,15,9] >>> Stream.toList $ Stream.foldManyPost f $ Stream.fromList [1..10] [3,7,11,15,19,0]
Pre-release -
streamly Streamly.Internal.Data.Stream.IsStream Like foldMany but appends empty fold output if the fold and stream termination aligns:
>>> f = Fold.take 2 Fold.sum >>> Stream.toList $ Stream.foldManyPost f $ Stream.fromList [] [0] >>> Stream.toList $ Stream.foldManyPost f $ Stream.fromList [1..9] [3,7,11,15,9] >>> Stream.toList $ Stream.foldManyPost f $ Stream.fromList [1..10] [3,7,11,15,19,0]
Pre-release