fromEdges<E> static method
Implementation
static List<Extent<E>> fromEdges<E>(Iterable<E> data,
{Comparator? comparator}) {
if (data.length <= 1) return [];
E start = data.first;
final ret = <Extent<E>>[];
for (final next in data.skip(1)) {
ret.add(Extent<E>(start, next, comparator: comparator));
start = next;
}
return ret;
}