(a -> b) -> [a] -> [b] -base -xhtml -syb
A combination of parList and map, encapsulating a common pattern:
> parMap strat f = withStrategy (parList strat) . map f
Sequential function application. The argument is evaluated using the given strategy before it is given to the function.
Parallel function application. The argument is evaluated using the given strategy, in parallel with the function application.
the deep analogue of $!. In the expression f $!! x, x is fully evaluated before the function f is applied to it.
Sequential function composition. The result of the second function is evaluated using the given strategy, and then given to the first function.
Parallel function composition. The result of the second function is evaluated using the given strategy, in parallel with the application of the first function.
Sequential inverse function composition, for those who read their programs from left to right. The result of the first function is evaluated using the given strategy, and then given to the second function.
Parallel inverse function composition, for those who read their programs from left to right. The result of the first function is evaluated using the given strategy, in parallel with the application of the second function.
censor f m is an action that executes the action m and applies the function f to its output, leaving the return value unchanged.
* f m = pass (liftM (\x ->
> (x,f))