let
rec
for_all p =
function
Empty
->
true
|
Node
(l, v, r, _)
->
p v
&&
for_all p l
&&
for_all p r