Have you seen Nim's concepts? [1] They sound similar to what you're describing.
The semantics are slightly different from Python. 'a[x .. ^1]' means 'The items of a from x to the last element'
Oops, forgot to include link to concepts: http://nim-lang.org/docs/manual.html#generics-concepts
No, I hadn't seen the 'a[x .. ^1]' syntax. Does that mean 'The items of a from x to the second from the last'? If so I'm glad that the semantics are there but Python's syntax is still nicer.