for -package:language-c-quote

for is traverse with its arguments flipped. For a version that ignores the results see for_.
Combinator for the for attribute. Example:
div ! for "bar" $ "Hello."
Result:
<div for="bar">Hello.</div>
(for p body) loops over p replacing each yield with body.
for :: Functor m => Producer b m r -> (b -> Effect       m ()) -> Effect       m r
for :: Functor m => Producer b m r -> (b -> Producer   c m ()) -> Producer   c m r
for :: Functor m => Pipe   x b m r -> (b -> Consumer x   m ()) -> Consumer x   m r
for :: Functor m => Pipe   x b m r -> (b -> Pipe     x c m ()) -> Pipe     x c m r
The following diagrams show the flow of information:
.--->   b
/        |
+-----------+            /   +-----|-----+                 +---------------+
|           |           /    |     v     |                 |               |
|           |          /     |           |                 |               |
x ==>    p    ==> b   ---'   x ==>   body  ==> c     =     x ==> for p body  ==> c
|           |                |           |                 |               |
|     |     |                |     |     |                 |       |       |
+-----|-----+                +-----|-----+                 +-------|-------+
v                            v                               v
r                            ()                              r
For a more complete diagram including bidirectional flow, see "Pipes.Core#respond-diagram".
Simple for loop. Counts from start to end-1.
for replaces each element of a stream with an associated stream. Note that the associated stream may layer any functor.
Obtain a tagged value for a particular instantiated type.
for xs f applies f to each chunk in the stream, and concatenates the resulting streams. Generalised in 0.2.4 to match streaming: the callback's (ignored) return value can be of any type.
for is traverse with its arguments flipped. For a version that ignores the results see for_.
The true pure for loop. for is a misnomer, it should be forA.
For the given time period.
  • Depends: now for the given time period.
  • Inhibits: after the given time period.
Executes in parallel the actions stored within a Traversable container t.
Non-monadic forM.
Use for to configure the number of tests performed by check.
> check `for` 10080 $ \xs -> sort (sort xs) == sort (xs :: [Int])
+++ OK, passed 10080 tests.
Don't forget the dollar ($)!
An effect for parallel computations based on a Traversable container t.
Executes in parallel the actions stored within a Traversable container t.