*catamorphism

ulidtko 05.09.2011 22:12

string build_reverse(Tree tree) {
if(!tree)
return "";

string result = build_reverse(tree→l_son) ++ build_reverse(tree→r_son) ++ tree→value;
return result;
}

ХГМ детектед.

*catamorphism is used by: