Does anyone know how to replace or take out a node from a tree structure ?
PLZ help me!!
data Tree = One|Two|Three|Four|
Not Tree|Or Tree Tree|And Tree Tree
deriving (Show,Eq,Ord)
takeTree 3 (And One (Not( Not Two))) = Not Two
replaceTree Three 3 (And One (Not( Not Two))) = And One Three