Expand description
Auto-generated module
🤖 Generated with SplitRS
Traits§
- Erased
Pass - A generic transformation pass over erased expressions.
Functions§
- build_
apps - Build a left-associated App chain from (head, [arg1, arg2, …]).
- collect_
consts - Collects all constant references in an expression.
- count_
apps - Count the number of App nodes.
- count_
free_ vars - Counts free variables in an erased expression.
- flatten_
apps - Flatten left-associated App chains into (head, [arg1, arg2, …]).
- has_
free_ bvar - Return whether BVar(0) appears free in expr at the given depth.
- lambda_
depth - Computes the lambda depth of an expression.
- pretty_
print_ erased - Pretty prints an erased expression to a string.
- subst_
bvar0 - Substitute BVar(0) with
replacementinexpr, shifting free variables.