|
definition: |
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: |
argument 2 |
|
deterministic: |
deterministic operation |
|
documentation: |
get the arity of a specific function from the rules: |
|
failfree: |
(_, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,{[]}) |-> _ || (_,{:}) |-> _}
|
|
name: |
arityOf |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
String -> [Rule] -> Prelude.Int |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
reducible on all ground data terms |