Skip to content

Instantly share code, notes, and snippets.

@adpoe
Created June 16, 2016 05:27
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