Computes the length of union of multiple ranges. The input ranges are passed as a range of ranges and each is assumed to be sorted by less.
Predicate the given ranges are sorted by.
A range of ranges sorted by less to compute the intersection for.
A length of the union of the ranges in ror.
See Implementation
Computes the length of union of multiple ranges. The input ranges are passed as a range of ranges and each is assumed to be sorted by less.