Created
June 16, 2016 05:27
-
-
Save adpoe/e7a25362179d132fa6f4a72863311026 to your computer and use it in GitHub Desktop.
Binary Tree in Haskell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data BinaryTree a = | |
Leaf | |
| Node (BinaryTree a) a (BinaryTree a) | |
deriving (Eq, Ord, Show) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment