Modulegrapesy-1.1.1Haskell2010
Network.GRPC.Common.NextElem
Elements in a stream (without metadata)
Intended for qualified import.
import Network.GRPC.Common.NextElem qualified as NextElemNetwork.GRPC.Common (intended for unqualified import) exports
NextElem(..), but none of the operations on NextElem.
- 5 values
- Packagegrapesy-1.1.1
- Exports5
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceNextElem.hs
Conversion
1 declarationIteration
4 declarationsInvoke the callback for each element, and then once more with NoNextElem
mapM_ f [1,2,3]
== do f (NextElem 1)
f (NextElem 2)
f (NextElem 3)
f NoNextElemLike mapM_, but with the arguments in opposite order
Invoke a function on each NextElem, until NoNextElem
See also collect.
Invoke the callback until it returns NoNextElem, collecting results