I'm probably missing something here, but what is gained by the intermediate creating of a `RangeSet`? Is it some kind of deduplication?  I.e. is there no way to easily go from the sorted input range straight to the `Map` result?