As I far as I know, I don’t think that’s possible. Not 100% sure, though.
However, what would be the use case? Or w.r.t. your example, what’s the difference between [0, 0, 1, 2, 3] and [0, 1, 2, 3, 0]? Both are effectively the same sequences. So you could convert your inputs to:
[1, 2, 3]
[1, 2, 3]
[1, 0, 0]