definition:
|
fSubterms :: Term -> [(String,[Term])]
fSubterms (Var _) = []
fSubterms (Func ft f args) = let argterms = concatMap fSubterms args in
if ft==Def then (f,args) : argterms else argterms
|
demand:
|
argument 1
|
deterministic:
|
deterministic operation
|
documentation:
|
-- get all operation-rooted subterms of a term
-- (as a list of function name/argument pairs):
|
failfree:
|
_
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{({Var}) |-> {[]} || ({Func}) |-> _}
|
name:
|
fSubterms
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
Term -> [(String, [Term])]
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
reducible on all ground data terms
|