cd155/algorithm-design-with-haskell

Traverse Binary Tree

cd155 opened this issue · 1 comments

cd155 commented

All the traverse in the following code can be shortened. It is unnecessary to specifically make left or right to be Null. It better treat them just as children as left and right.

inOrderTraverse :: BiTree a -> [a]