MathGroup Archive 2002

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

Search the Archive

Re: Re: List processing

  • To: mathgroup at smc.vnet.net
  • Subject: [mg37245] Re: [mg37232] Re: List processing
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Fri, 18 Oct 2002 05:17:19 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

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