CurryInfo: flatcurry-4.0.0 / FlatCurry.Goodies.varNr

definition:
varNr :: Expr -> Int
varNr expr = case expr of
  (Var n) -> n
  _       -> error "FlatCurryGoodies.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:
{({Var}) |-> _ || ({Lit}) |-> _ || ({Comb}) |-> _ || ({Let}) |-> _ || ({Free}) |-> _ || ({Or}) |-> _ || ({Case}) |-> _ || ({Typed}) |-> _}
name:
varNr
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