PassiveSupport.Range.adjacent-question-mark
You're seeing just the function
adjacent-question-mark
, go back to PassiveSupport.Range module for more information.
Specs
Returns true
if either range begins immediately after the other.
Returns false
if the ranges have opposing polarities
Examples
iex> adjacent?(1..5, 6..10)
true
iex> adjacent?(6..10, 1..5)
true
iex> adjacent?(10..6, 5..1)
true
iex> adjacent?(5..1, 10..6)
true
iex> adjacent?(0..4, 6..10)
false
iex> adjacent?(6..10, 0..4)
false
iex> adjacent?(10..6, 1..5)
false