is_ptreepatriciaLib.is_ptree : term -> bool
Term recogniser for Patricia trees.
The destructor is_ptree will return true if, and only
if, the supplied term is a well-constructed, ground Patricia tree.
- is_ptree ``t:unit ptree``;
val it = false: bool
- is_ptree ``Branch 1 2 (Leaf 2 2) (Leaf 3 3)``;
val it = false: bool
- is_ptree ``Branch 0 0 (Leaf 1 1) (Leaf 2 2)``;
val it = true: bool