-
-
Save cbeust/70e40b39d50b355877efbb2fab5fa7f2 to your computer and use it in GitHub Desktop.
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
class Node(override val value: String, | |
override val children: List<Node> = emptyList()) : INode<String> | |
class Tree(val payload: Int, val leaves: List<Tree>) : INode<Int> { | |
override val children: List<Tree> = leaves | |
override val value: Int = payload | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment