CurryInfo: call-analysis-3.2.0 / TRS.arityOf

definition: Info
 
arityOf :: String -> [Rule] -> Int
arityOf f [] = error $ "arity of function "++f++" not found"
arityOf f (Rule rf args _ : rules) =
  if f==rf then length args
           else arityOf f rules
demand: Info
 argument 2
deterministic: Info
 deterministic operation
documentation: Info
 
get the arity of a specific function from the rules:
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,{[]}) |-> _ || (_,{:}) |-> _}
name: Info
 arityOf
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> [Rule] -> Prelude.Int
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 reducible on all ground data terms