HeldExpression
HeldExpression()Operations that transform an expression.
Methods
| Name | Description |
|---|---|
| contains | Returns true iff self contains a literally. |
| is_type | Test if the expression is of a certain type. |
| matches | Create a transformer that tests whether the pattern is found in the expression. |
contains
HeldExpression.contains(s)Returns true iff self contains a literally.
is_type
HeldExpression.is_type(atom_type)Test if the expression is of a certain type.
matches
HeldExpression.matches(
lhs,
cond=None,
level_range=None,
level_is_tree_depth=None,
allow_new_wildcards_on_rhs=None,
)Create a transformer that tests whether the pattern is found in the expression. Restrictions on the pattern can be supplied through cond.