<Shift kotlin array> Assume that I have an array l...
# stackoverflow
u
Shift kotlin array Assume that I have an array like 1 2 3 4 5, I want to shift them to left by n rotation and get a new one. For example the 2 rotation of the above array will result in 3 4 5 1 2. I didn't found any extension function to do that.