-
-
Save cbeust/5e9320be92d8087e4087b03ee4ca58cd 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