Join Slack
Powered by
<Shift kotlin array> Assume that I have an array l...
# stackoverflow
u
user
10/19/2018, 12:01 PM
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.
Open in Slack
Previous
Next