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") { ... }

Parameters

root

Root element of new tree.

See also