<> is defined with the following defs:
ordering, which makes the above meaningful
<> has a notion that an element can be within the range, i.e. between start and end, or outside
Note. Scala provided range structures (Range and NumericRange) are implemented more as collections and this class is designed to close this void focusing on generic range operations
Optionally returns common intersection of
1 <> 6 overlap_? 3 <> 9 // Returns: Opt(3 <> 6) 1 <> 3 overlap_? 6 <> 9 // Returns: Opt(\/)
Returns a stream containing the first range value and the result of applying given function to this value and the produced results. The stream ends when the function result is no longer within range.
(1 <> 10).step_~( _ + 3).tp // Prints: ~(1, 4, 7, 10)