jacopy.Integer¶
- class jacopy.Integer(value)¶
Bases:
AtomInteger literal.
Values
-1,0,1are cached as singletons so that structural equality with common sentinels is cheap and references likeZeroandOnecompare identical underis.- Parameters:
value (int)
Methods
__init__(value)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
childrenTuple of immediate children.
is_atomvalue