Add a method to Range
to detect overlap/intersection with another Range
#14487
Labels
good first issue
This is an issue suited for newcomers to become aquianted with working on the codebase.
help wanted
This issue is generally accepted and needs someone to pick it up
kind:feature
topic:stdlib:collection
The
Range
type doesn't currently tell you if it overlaps with another instance, but it's a useful thing to check for. For example, a scheduling app may need to detect whether a given time period conflicts with any existing meetings/events:existing_events.any?(&.overlaps?(range))
The text was updated successfully, but these errors were encountered: