RRange.ActiveSupport (REnum v0.8.0)
Summarized all of List functions in Rails.ActiveSupport.
If a function with the same name already exists in Elixir, that is not implemented.
Defines all of here functions when use RRange.ActiveSupport
.
Link to this section Summary
Functions
Compare two ranges and see if they overlap each other.
Link to this section Functions
Link to this function
overlaps?(range1, range2)
Specs
Compare two ranges and see if they overlap each other.
Examples
iex> RList.overlaps?(1..5, 4..6)
true
iex> RList.overlaps?(1..5, 7..9)
false