mergeByPath

fun mergeByPath(path: List<Int>)

mergeByPath merges the tree by the given path.