CurryInfo: abstract-curry-4.0.0 / AbstractCurry.Select.varsOfPat

definition:
varsOfPat :: CPattern -> [CVarIName]
varsOfPat (CPVar v) = [v]
varsOfPat (CPLit _) = []
varsOfPat (CPComb _ pats) = concatMap varsOfPat pats
varsOfPat (CPAs v pat) = v : varsOfPat pat
varsOfPat (CPFuncComb _ pats) = concatMap varsOfPat pats
varsOfPat (CPLazy pat) = varsOfPat pat
varsOfPat (CPRecord _ recpats) = concatMap (varsOfPat . snd) recpats
demand:
argument 1
deterministic:
deterministic operation
documentation:
--- Returns list of all variables occurring in a pattern.
--- Each occurrence corresponds to one element, i.e., the list might
--- contain multiple elements.
failfree:
_
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{({CPVar}) |-> {:} || ({CPLit}) |-> {[]} || ({CPComb}) |-> _ || ({CPAs}) |-> {:} || ({CPFuncComb}) |-> _ || ({CPLazy}) |-> _ || ({CPRecord}) |-> _}
name:
varsOfPat
precedence:
no precedence defined
result-values:
_
signature:
AbstractCurry.Types.CPattern -> [(Prelude.Int, String)]
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
reducible on all ground data terms