splitByPath

fun splitByPath(path: List<Int>)

splitByPath splits the tree by the given path.