Skip to content

IntervalAdjacency

IntervalAdjacency<T> = (end, nextStart) => boolean

Defined in: interval/merge-intervals.ts:11

Whether an interval ending at end and one starting at nextStart leave no point between them, so the two cover a contiguous stretch despite sharing no point.

Only meaningful over a discrete bound type: (end, next) => next === end + 1 for integers, (end, next) => next === end + 1n for bigint.

T

T

T

boolean