On Jan 23, 2008 10:54 AM, David Walbert <<a href="mailto:dwalbert@learnnc.org">dwalbert@learnnc.org</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div class="Ih2E3d"><br></div><div>It's not that simple -- the last line should be</div><div><br></div><div>start = 1 + ( (number of items - 1) * step)</div><div><br></div><div>if it's assumed that the last item of the list is numbered one by default.
</div></div></blockquote><div><br><br>Alas, we see the ill effects of my hastiness today! I stand happily corrected. In that case, it's even simpler:<br><br><div style="margin-left: 40px;">if start is not specified<br>
<div style="margin-left: 40px;">start = 1<br>if reverse<br><div style="margin-left: 40px;">start += (number of items - 1) * step<br></div></div></div><br>Here's hoping I haven't missed something obvious again. ^_^ Regardless, I think we've shown it's fairly painless to implement.
<br><br>- Jason<br></div></div>