3 lines
119 B
Text
3 lines
119 B
Text
instance Functor Tree where
|
|
fmap f Empty = Empty
|
|
fmap f (Node x l r) = Node (f x) (fmap f l) (fmap f r)
|