CurryInfo: flatcurry-annotated-3.3.0 / FlatCurry.Annotated.Goodies.varNr

definition:
varNr :: AExpr _ -> VarIndex
varNr aexpr = case aexpr of
  (AVar _ n) -> n
  _          -> error "AnnotatedFlatCurryGoodies.varNr: no variable"
demand:
argument 1
deterministic:
deterministic operation
documentation:
--- get internal number of variable
failfree:
_
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{({AVar}) |-> _ || ({ALit}) |-> _ || ({AComb}) |-> _ || ({ALet}) |-> _ || ({AFree}) |-> _ || ({AOr}) |-> _ || ({ACase}) |-> _ || ({ATyped}) |-> _}
name:
varNr
precedence:
no precedence defined
result-values:
_
signature:
FlatCurry.Annotated.Types.AExpr a -> Prelude.Int
solution-complete:
operation might suspend on free variables
terminating:
yes
totally-defined:
reducible on all ground data terms