definition: |
either :: (a -> c) -> (b -> c) -> Either a b -> c either left _ (Left a) = left a either _ right (Right b) = right b |
demand: |
argument 3 |
deterministic: |
deterministic operation |
documentation: |
Apply a case analysis to a value of the Either type. If the value is `Left x`, the first function is applied to `x`. If the value is `Right y`, the second function is applied to `y`. |
failfree: |
(_, _, _) |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,_,{Left}) |-> _ || (_,_,{Right}) |-> _} |
name: |
either |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
(a -> b) -> (c -> b) -> Either a c -> b |
solution-complete: |
operation might suspend on free variables |
terminating: |
yes |
totally-defined: |
reducible on all ground data terms |