CurryInfo: prolog-3.0.0 / Language.Prolog.Goodies.termConstrs

definition:
termConstrs :: PlTerm -> [(String,Int)]
termConstrs pterm = case pterm of
  PlAtom a      -> [(a,0)]
  PlStruct s ts -> union [(s, length ts)] (unionMap termConstrs ts)
  _             -> []
demand:
argument 1
deterministic:
deterministic operation
documentation:
--- The set of all data constructors together with their arities
--- used in a Prolog term.
failfree:
_
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{({PlAtom}) |-> {:} || ({PlStruct}) |-> _ || ({PlVar}) |-> _ || ({PlInt}) |-> _ || ({PlFloat}) |-> _}
name:
termConstrs
precedence:
no precedence defined
result-values:
_
signature:
Language.Prolog.Types.PlTerm -> [(String, Prelude.Int)]
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
reducible on all ground data terms