module documentation
General functional-style helpers for disttrial.
Function | compose |
Create a function that calls one function with an argument and then another function with the result of the first function. |
Function | counting |
Wrap a function with another that automatically passes an integer counter of the number of calls that have gone through the wrapper. |
Function | flip |
Create a function like another but with the order of the first two arguments flipped. |
Function | from |
Get a definite value from an optional value. |
Async Function | iterate |
Call a function repeatedly until its result fails to satisfy a predicate. |
Async Function | sequence |
Wait for one action to complete and then another. |
Function | take |
No summary |
Variable | discard |
Undocumented |
Type Variable | _A |
Undocumented |
Type Variable | _B |
Undocumented |
Type Variable | _C |
Undocumented |
Create a function that calls one function with an argument and then another function with the result of the first function.
Wrap a function with another that automatically passes an integer counter of the number of calls that have gone through the wrapper.
Wait for one action to complete and then another.
If either action fails, failure is propagated. If the first action fails, the second action is not waited on.