pub fn outer_lambda_depth(expr: &Expr) -> usize
Count the maximum lambda depth (outermost consecutive lambdas).