On 8/29/06, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote: > Nick Coghlan wrote: > > > reversed(seq[start:stop:step]) becomes seq[(stop-1)%abs(step):start-1:-step] > > > > An rslice builtin would make the latter version significantly easier to read: > > > > seq[rslice(start, stop, step)] > > How would this deal with omitted start and/or stop values? More generally, given start/stop/step don't have to be numbers, how can this work in general? I don't actually see a need for this, given that reversed(seq[start:stop:step]) covers all of the real use cases I can think of... Paul.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4