TreeNode

open class TreeNode<T>(val value: T, val children: List<TreeNode<T>> = emptyList())(source)

Inheritors

Constructors

Link copied to clipboard
constructor(value: T, children: List<TreeNode<T>> = emptyList())

Properties

Link copied to clipboard
open val children: List<TreeNode<T>>
Link copied to clipboard
open val value: T

Functions

Link copied to clipboard
operator fun get(index: Int): TreeNode<T>