MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: List processing


On Thursday, October 17, 2002, at 12:09 AM, BobHanlon at aol.com wrote:

>
>
> lst = {{100, 200}, {150, 250}, {120, 270}, {300, 400}};
>
> List @@ Union @@ Interval /@ lst
>
> {{100, 270}, {300, 400}}
>
> List @@ Interval[Sequence @@ lst]
>
> {{100, 270}, {300, 400}}
>

Forgot about the Interval function, but to continue the pattern 
List@@Interval@@lst also works.  I personally prefer not to  use 
Sequence objects if I can avoid them.

Regards,

Sseziwa

PS - It is much faster than my previous posts.



  • Prev by Date: Re: Re: c++ book
  • Next by Date: Bad Alignment of Y Axes
  • Previous by thread: Re: List processing
  • Next by thread: Re: List processing