Should setDifference take a SortedRange?

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Thu Feb 6 09:35:31 PST 2014


The documentation states:

"The two ranges are assumed to be sorted by less."

Would it make more sense for this function, and its siblings, to 
take a SortedRange instead. This would be a breaking change as it 
would require people to either sort or assumeSorted before 
calling.

But SortedRange was added for exactly this application (I 
believe).


More information about the Digitalmars-d mailing list