dropStartWrt

internal fun ColumnPath.dropStartWrt(otherPath: ColumnPath): ColumnPath

Drops the overlapping start of the child path with respect to the parent path, and returns the resulting ColumnPath.

For example:

val parentPath = pathOf("a", "b", "c")
val childPath = pathOf("a", "b", "c", "d", "e")

childPath.dropStartWrt(parentPath) // returns pathOf("d", "e")

Return

The resulting ColumnPath after dropping the overlapping start.

Parameters

otherPath

The parent path to compare against.