hasGap

Predicate that checks for the existence of one or more gaps in an array of Range!T.

It is assumed that the array is already sorted. All empty ranges are ignored.

bool
hasGap
(
T
)
()

Parameters

ranges Range!(T)[]

a sorted array of Range!T to be checked

Return Value

Type: bool

true if at least one gap exists in the array

Meta