addSeveralAfter

fun Node.addSeveralAfter(targetNode: Node, newNodes: List<Node>)

Looks for targetNode in the lists of nodes in this node. When found, newNodes are inserted after it. When not found, an IllegalStateException is thrown.


fun Node.addSeveralAfter(newNodes: List<Node>)

Inserts the newNodes after this node if it is in a MutableList. For this to work, Node.assignParents must have been called.


fun <T> MutableList<T>.addSeveralAfter(index: Int, additions: List<T>)

Replaces the element at index with additions.