jacopy.Pairing¶
- class jacopy.Pairing(alpha, X)¶
Bases:
ExprCanonical pairing
⟨α, X⟩.Children
(alpha, X)are stored in the order given; equality is structural. The semantic order (1-form, vector field) is under the caller’s control.Methods
__init__(alpha, X)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
XalphaTuple of immediate children.
is_atom