tree_to_list/3¶
tree_to_list(+ Tree, - List)*
Is the converse operation to list_to_tree.. Any mapping or checking operation can be done by converting the tree to a list, mapping or checking the list, and converting the result, if any, back to a tree. It is also easier for a human to read a list than a tree, as the order in the tree goes all over the place.