|
definition: |
funcRules :: String -> [Rule] -> [([Term],Term)]
funcRules _ [] = []
funcRules f (Rule rf args rhs : rules) =
if f==rf then (args,rhs) : funcRules f rules
else funcRules f rules
|
|
demand: |
argument 2 |
|
deterministic: |
deterministic operation |
|
documentation: |
get all rules for a given function name: |
|
failfree: |
(_, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,{[]}) |-> {[]} || (_,{:}) |-> {:,[]}}
|
|
name: |
funcRules |
|
precedence: |
no precedence defined |
|
result-values: |
{:,[]}
|
|
signature: |
String -> [Rule] -> [([Term], Term)] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
reducible on all ground data terms |