Skip to main content

expr_depth

Function expr_depth 

Source
pub fn expr_depth(expr: &TLExpr) -> usize
Expand description

Compute the depth (height) of an expression tree.

Leaf nodes have depth 1; each internal node adds 1 to the maximum depth of its children.