Re: merge two ranges

2007-07-18 Thread George Sakkis
On Jul 17, 1:29 pm, anoweb <[EMAIL PROTECTED]> wrote: > I have two ranges of numbers and I need to determine if they overlap > or adjacent and if so return a new range containing the values. The > values are low and high for each pair, such that the first value of > the tuple is always less than o

Re: merge two ranges

2007-07-17 Thread Marc 'BlackJack' Rintsch
On Tue, 17 Jul 2007 17:29:41 +, anoweb wrote: > I have two ranges of numbers and I need to determine if they overlap > or adjacent and if so return a new range containing the values. The > values are low and high for each pair, such that the first value of > the tuple is always less than or e

merge two ranges

2007-07-17 Thread anoweb
I have two ranges of numbers and I need to determine if they overlap or adjacent and if so return a new range containing the values. The values are low and high for each pair, such that the first value of the tuple is always less than or equal to the second value in the tuple. for example: a = (0

merge two ranges

2007-07-17 Thread anoweb
I have two ranges of numbers and I need to determine if they overlap or adjacent and if so return a new range containing the values. The values are low and high for each pair, such that the first value of the tuple is always less than or equal to the second value in the tuple. for example: a = (0