NetAddr.contiguous-question-mark
You're seeing just the function
contiguous-question-mark
, go back to NetAddr module for more information.
Specs
Test whether two NetAddrs are strictly contiguous (i.e. can be more succinctly represented as a single, shorter prefix that is not equal to either of the given prefixes).
Examples
iex> use NetAddr
iex> NetAddr.contiguous?(~p"192.0.2.0/24", ~p"192.0.2.0/24")
false
iex> NetAddr.contiguous?(~p"192.0.2.0/24", ~p"192.0.2.0/25")
false
iex> NetAddr.contiguous?(~p"192.0.2.0/24", ~p"198.51.100.0/24")
false
iex> NetAddr.contiguous?(~p"192.0.2.64/26", ~p"192.0.2.128/25")
false
iex> NetAddr.contiguous?(~p"192.0.2.0/25", ~p"192.0.2.128/25")
true