detach

fun detach(): Path

Returns an immutable Path representing the current state of this builder. The builder is reset to empty after this call.

Return

a new immutable Path