Module range_utils

Source

Functionsยง

range_diff ๐Ÿ”’
Calculate the difference of two ranges A and B, return (removed ranges, added ranges). Note this is quite different from range_except.
range_except ๐Ÿ”’
Calculate range (A - B), the result might be the union of two ranges when B is totally included in the A.