tree
inline fun <T> tree(root: T, defaultIterator: TreeNodeIterators = TreeNodeIterators.PreOrder, childDeclaration: ChildDeclaration<T>): TreeNode<T>
This method can be used to initialize new tree.
val root = tree("World") { ... }
Content copied to clipboard
Parameters
root
Root element of new tree.