Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:23
What would you like to do?
BinaryTree ADT
sealed trait Tree[+A]
case object EmptyTree extends Tree[Nothing]
case class Node[A](value: A , left: Tree[A], right: Tree[A]) extends Tree[A]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment