Created
January 11, 2020 11:25
-
-
Save lizmat/ed63ff17eec693510fcb840a495cf3c1 to your computer and use it in GitHub Desktop.
ADT first test fail
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
Tree.new-branch( | |
left => Tree.new-branch( | |
left => Tree.new-leaf(storage => 1), | |
right => Tree.new-leaf(storage => 2) | |
), | |
right => Tree.new-leaf(storage => 3) | |
) | |
Tree.new-branch( | |
left => Tree.new( | |
leaf => Any, | |
branch => Branch.new( | |
left => Tree.new( | |
leaf => Leaf.new(storage => 1), | |
branch => Any | |
), | |
right => Tree.new( | |
leaf => Leaf.new(storage => 2), | |
branch => Any | |
) | |
) | |
), | |
right => Tree.new( | |
leaf => Leaf.new(storage => 3), | |
branch => Any | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment