You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RangeSet's mutation methods (add(), remove(), etc.) could leave the RangeSet unchanged (if rangeSet.encloses(range) or range.isEmpty()) but there's no easy way to detect when this occurs without manually inspecting the RangeSet or Range before the operation.
The equivalent methods on Set all return a boolean, returning true if the Set changed as a result of the operation; it would be useful if RangeSet behaved similarly.
The text was updated successfully, but these errors were encountered:
RangeSet
's mutation methods (add()
,remove()
, etc.) could leave theRangeSet
unchanged (ifrangeSet.encloses(range)
orrange.isEmpty()
) but there's no easy way to detect when this occurs without manually inspecting theRangeSet
orRange
before the operation.The equivalent methods on
Set
all return a boolean, returningtrue
if theSet
changed as a result of the operation; it would be useful ifRangeSet
behaved similarly.The text was updated successfully, but these errors were encountered: