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