let
rec
cardinal =
function
|
Empty
->
0
|
Node
n
->
cardinal n.left + 1 + cardinal n.right