First find the ends of the range and then find a way to efficiently enumerate the entries in between.