map

internal fun <T : ReadonlyTreeNode<*>, R> T.map(operation: (node: T, children: List<R>) -> R): R

Mapping function for ReadonlyTreeNodes (like TreeNode) which can convert the tree-structure (depth-first) to any other tree-type structure (e.g. DataFrame).