ensure-disjoint ( intervals -- intervals )


Vocabulary
interval-maps.private

Inputs
intervalsan object


Outputs
intervalsan object


Definition


: ensure-disjoint ( intervals -- intervals )
dup [ disjoint? ] monotonic?
[ "Intervals are not disjoint" throw ] unless ;