Fast way to append to an SList

2012-01-13 Thread Fernando Carvajal
I need a fast way to append to an SList. I was thinking of using insertAfter() and keep track of a range that points to the end of the list but, after appending an item, how would you get the new range to the end? This is what I had planned: List!int list; Range end = list[]; list.insertAfter

Re: Fast way to append to an SList

2012-01-13 Thread Steven Schveighoffer
On Fri, 13 Jan 2012 06:34:39 -0500, Fernando Carvajal fernandocarva...@mailinator.com wrote: I need a fast way to append to an SList. I was thinking of using insertAfter() and keep track of a range that points to the end of the list but, after appending an item, how would you get the new