fun <T : ZTreeNode<T>> treeAsList(node: T): List<T>(source)

Returns a list representation of the tree structure starting from the given node.

Return

A list of nodes in the tree.

Parameters

node

The root node of the tree.

T

The type of the node that implements the ZTreeNode interface.