CurryInfo: rewriting-3.0.0 / Rewriting.Term.renameTermVars

definition:
renameTermVars :: Int -> Term f -> Term f
renameTermVars i (TermVar v)     = TermVar (v + i)
renameTermVars i (TermCons c ts) = TermCons c (map (renameTermVars i) ts)
demand:
argument 2
deterministic:
deterministic operation
documentation:
--- Renames the variables in a term by the given number.
failfree:
(_, _)
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,{TermVar}) |-> {TermVar} || (_,{TermCons}) |-> {TermCons}}
name:
renameTermVars
precedence:
no precedence defined
result-values:
{TermCons,TermVar}
signature:
Prelude.Int -> Term a -> Term a
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
reducible on all ground data terms