definition:
|
caseExpr :: Expr -> Expr
caseExpr expr = case expr of
(Case _ e _) -> e
_ -> error "FlatCurryGoodies.caseExpr: no case expression"
|
demand:
|
argument 1
|
deterministic:
|
deterministic operation
|
documentation:
|
--- get scrutinee of case expression
|
failfree:
|
_
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{({Case}) |-> _ || ({Var}) |-> _ || ({Lit}) |-> _ || ({Comb}) |-> _ || ({Let}) |-> _ || ({Free}) |-> _ || ({Or}) |-> _ || ({Typed}) |-> _}
|
name:
|
caseExpr
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
FlatCurry.Types.Expr -> FlatCurry.Types.Expr
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
yes
|
totally-defined:
|
reducible on all ground data terms
|