Last active
August 29, 2015 14:23
-
-
Save adilakhter/5b1724a42c50145f10b9 to your computer and use it in GitHub Desktop.
an instance of BinaryTree t1
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
scala> val t1 = node(4, | |
node(2 | |
, node(1) | |
, node(3) | |
) , | |
node(7 | |
, node(6) | |
, node(9) | |
) | |
) | |
t1: Tree[Int] = | |
Node(4, | |
Node(2, | |
Node(1,EmptyTree,EmptyTree), | |
Node(3,EmptyTree,EmptyTree)), | |
Node(7, | |
Node(6,EmptyTree,EmptyTree), | |
Node(9,EmptyTree,EmptyTree))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment