Is there a function for doing this? myrange.at(i) (with meaning of myrange.dropExactly(i).front)it's a common enough operation (analog to myrange[i]; the naming is fromC++'s std::vector<T>::at)
That would require a random access range, in which case you can just index directly. For a non-random access range, which you're doing would be the most direct way of doing it.
- Jonathan M Davis