definition:
|
updateEnv :: IEnv -> IVarIndex -> NodeID -> IEnv
updateEnv [] v n = [(v,n)]
updateEnv ((v',m) : env) v n =
if v==v' then (v,n) : env
else (v',m) : updateEnv env v n
|
demand:
|
argument 1
|
deterministic:
|
deterministic operation
|
failfree:
|
(_, _, _)
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{({[]},_,_) |-> {:} || ({:},_,_) |-> {:}}
|
name:
|
updateEnv
|
precedence:
|
no precedence defined
|
result-values:
|
{:}
|
signature:
|
[(Prelude.Int, Prelude.Int)] -> Prelude.Int -> Prelude.Int
-> [(Prelude.Int, Prelude.Int)]
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
yes
|
totally-defined:
|
reducible on all ground data terms
|