(e: BoxedExpression)
| 118 | for (let i = 1; i < expr.length; i++) collectSymbols(expr[i], out); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | function leafCount(e: BoxedExpression): number { |
| 123 | if (!e.ops) return 1; |
| 124 | return 1 + e.ops.reduce((s, op) => s + leafCount(op), 0); |
| 125 | } |
| 126 |