Conversation

Replying to
int sum(const BinaryTree *tree) { match(*tree) { of(Leaf, x) { return *x; } of(Node, lhs, x, rhs) { return sum(*lhs) + *x + sum(*rhs); } } }
1
1