Just throwing the idea here, maybe would be nice to be able to call this API with any kind of range.
And since is not a source breaking change, I thought it was worth bring to discussion.
cc @natecook1000
Checklist
[x] I've added at least one test that validates that my change is working, if appropriate
[x] I've followed the code style of the rest of the project
I think this is a great change. Since you could subscript a collection this way, it makes sense for rotate to also let you reference a subrange this way.
Just throwing the idea here, maybe would be nice to be able to call this API with any kind of range. And since is not a source breaking change, I thought it was worth bring to discussion.
cc @natecook1000
Checklist