description: Caps the depth of an expression.
View source on GitHub
|
Caps the depth of an expression.
Suppose you have an expression expr modeled as:
*
\
A
/ \
D B
\
C
if expr_2 = depth_limit.limit_depth(expr, 2) You get:
*
\
A
/ \
D B
limit_depth(...): Limit the depth to nodes k steps from expr.
View source on GitHub