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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”T
nextStart
Section titled “nextStart”T
Returns
Section titled “Returns”boolean