Package-level declarations
Types
Link copied to clipboard
data class ImmutableTreeNode<T>(val value: T, val children: PersistentList<ImmutableTreeNode<T>> = persistentListOf())
Functions
Link copied to clipboard
Returns this subtree's nodes in level-order (breadth-first: the receiver, then its children, then their children, and so on). Implemented iteratively, so it is safe on arbitrarily deep trees.
Link copied to clipboard
Returns this subtree's nodes in post-order (each child subtree in order, then the receiver last). Implemented iteratively, so it is safe on arbitrarily deep trees.
Link copied to clipboard
Returns this subtree's nodes in pre-order (the receiver first, then each child subtree in order). Implemented iteratively, so it is safe on arbitrarily deep trees.