something like this pseudocode: ``` val resultList...
# random
o
something like this pseudocode:
Copy code
val resultList = mutableListOf<DateRange>()
var currentRange = list.first()
for (range in list.drop(1)) {
   if (currentRange.end == range.start) currentRange = DateRange(currentRange.start, range.end) else { resultList.add(currentRange); currentRange=range}
}
resultList.add(currentRange)
t
@orangy my for loop skills have gotten embarrassingly rusty, but this looks like it may work. Ill play with this, thanks!