- From: Siemova <siemova@gmail.com>
- Date: Wed, 23 Jan 2008 11:18:09 -0600
On Jan 23, 2008 10:54 AM, David Walbert <dwalbert at learnnc.org> wrote: > > It's not that simple -- the last line should be > > start = 1 + ( (number of items - 1) * step) > > if it's assumed that the last item of the list is numbered one by default. > Alas, we see the ill effects of my hastiness today! I stand happily corrected. In that case, it's even simpler: if start is not specified start = 1 if reverse start += (number of items - 1) * step Here's hoping I haven't missed something obvious again. ^_^ Regardless, I think we've shown it's fairly painless to implement. - Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20080123/4c7bdbee/attachment.htm>
Received on Wednesday, 23 January 2008 09:18:09 UTC