splitByPath

fun splitByPath(path: List<Int>)

Splits the tree at the given path.

The node at path is split into two sibling nodes. Content after the split point moves into a new node inserted immediately after. Internally decomposes into one or two edit calls (delete tail + insert new node).

Throws

if path is empty.