definition:
|
addStarVars2Branch :: TABranchExpr -> TABranchExpr
addStarVars2Branch (ABranch p e) = case p of
APattern _ _ vars@(_ : _) -> ABranch p
(ALet (annExpr e) (zip (zip (map (starVar . fst) vars) (repeat boolType))
(repeat (boolExpr "True"))) e)
_ -> ABranch p e
|
demand:
|
argument 1
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Introduces starred variables for each pattern variable
|
failfree:
|
_
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{({ABranch}) |-> {ABranch}}
|
name:
|
addStarVars2Branch
|
precedence:
|
no precedence defined
|
result-values:
|
{ABranch}
|
signature:
|
FlatCurry.Annotated.Types.ABranchExpr FlatCurry.Types.TypeExpr
-> FlatCurry.Annotated.Types.ABranchExpr FlatCurry.Types.TypeExpr
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
reducible on all ground data terms
|