jacopy.Act¶
- class jacopy.Act(op, arg)¶
Bases:
ExprApplication of an operator to an argument:
op(arg).This is inert, it does not apply Leibniz at construction. The
jacopy.algorithms.product_rulepass is the one that rewritesAct(D, Product(...))into the expanded Leibniz sum.Methods
__init__(op, arg)clone()Return
self.find(predicate)Yield descendants (including self) satisfying
predicate.replace_at(path, new)Return a new tree with
newspliced atpath.substitute_atom(dummy, target)Return
selfwith every occurrence ofdummyreplaced bytarget.walk()Pre-order traversal yielding
selffollowed by descendants throughchildrenonly.Attributes
argTuple of immediate children.
is_atomop