|
definition: |
combinePMs :: (a -> b -> c) -> PM a -> PM b -> PM c
combinePMs f (PM p1) (PM p2) = warnPM (combinePRs f (discardWarnings p1)
(discardWarnings p2))
(concatWarns p1 p2)
where
concatWarns (WM _ w1) (WM _ w2) = w1 ++ w2
|
|
demand: |
arguments 2 3 |
|
deterministic: |
deterministic operation |
|
documentation: |
combines two PMs by function f, throws error if at least one of the two carries an error |
|
failfree: |
(_, _, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,{PM},{PM}) |-> {PM}}
|
|
name: |
combinePMs |
|
precedence: |
no precedence defined |
|
result-values: |
{PM}
|
|
signature: |
(a -> b -> c) -> PM a -> PM b -> PM c |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
yes |
|
totally-defined: |
reducible on all ground data terms |