CurryInfo: xmldata-3.0.0 / Data2Xml.renameUnused

definition:
renameUnused :: [(Int,String)] -> [CPattern] -> [CPattern]
renameUnused _        []     = []
renameUnused usedVars (p:ps) = case p of
  CPVar (i,v) | elem (i,v) usedVars -> CPVar (i,v)   : renameUnused usedVars ps
              | otherwise           -> CPVar (i,"_") : renameUnused usedVars ps
  _                                 -> p             : renameUnused usedVars ps
demand:
argument 2
deterministic:
deterministic operation
failfree:
(_, _)
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,{[]}) |-> {[]} || (_,{:}) |-> _}
name:
renameUnused
precedence:
no precedence defined
result-values:
{:,[]}
signature:
[(Prelude.Int, String)] -> [AbstractCurry.Types.CPattern]
-> [AbstractCurry.Types.CPattern]
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
reducible on all ground data terms