MathGroup Archive 2011

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

Search the Archive

Re: Delete elements from list..

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117010] Re: Delete elements from list..
  • From: BoLe <bole79 at gmail.com>
  • Date: Mon, 7 Mar 2011 05:49:35 -0500 (EST)
  • References: <ijv047$68v$1@smc.vnet.net> <ik00i6$e6k$1@smc.vnet.net>

On Feb 22, 10:44 am, Ray Koopman <koop... at sfu.ca> wrote:
>
> Union@FoldList[Max,First@mylist,Rest@list]
>

Wov, that is elegant to me, and fast. DeleteDuplicates speeds it a
tiny bit up. ;-) Since Union sorts the result (already sorted in this
case) or does it do something else too?


  • Prev by Date: Re: Prepending Data to a File
  • Next by Date: Show Rotate doesn't work
  • Previous by thread: Re: Reduce a vector eliminating equal components
  • Next by thread: Re: Delete elements from list..