MathGroup Archive 2006

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

Search the Archive

Insertion into sorted list

  • To: mathgroup at
  • Subject: [mg71027] Insertion into sorted list
  • From: "Andrew Moylan" <andrew.j.moylan at>
  • Date: Mon, 6 Nov 2006 02:52:23 -0500 (EST)

Hi all,

I have a sorted List. I need to occasionally insert new elements, while
always keeping the list sorted. Is there a more efficient way to do
this than the most obvious way (calling Append then calling Sort)?

Thanks for any help,


  • Prev by Date: Re: Mathematica 5.2 redraw errors with X and nvidia graphics card
  • Next by Date: Possible simple bug in NMaximize
  • Previous by thread: Re: Re: undocumented
  • Next by thread: Re: Insertion into sorted list