name = 'maxT/2' slug = 'find the greatest element in a tree' description = '''\
maxT(Tree, Max): Max is the greatest element in the tree Tree.
maxT(Tree, Max)
Max
Tree
?- maxT(t(1, t(2), t(3)), Max). Max = 3.