<div class="gmail_quote">On Wed, Nov 18, 2009 at 9:00 PM, Rami Chowdhury <span dir="ltr"><<a href="mailto:rami.chowdhury@gmail.com">rami.chowdhury@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm not sure you're understanding the point others have been making. A<br>
list item is merely another reference to an existing object -- it<br>
doesn't copy the object in any way.<br></blockquote><div> </div></div>It still has to copy the reference, though. That takes O(n) time if you're taking a big slice.<br><blockquote style="margin: 1.5em 0pt;">--<br>
Daniel Stutzbach, Ph.D.<br>
President, <a href="http://stutzbachenterprises.com">Stutzbach Enterprises, LLC</a>
</blockquote>