Skip to content

Instantly share code, notes, and snippets.

@adpoe

adpoe/binaryTree.hs

Created Jun 16, 2016
Embed
What would you like to do?
Binary Tree in Haskell
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