Given an integer n
and a block of text, rotate every character or element in the n-th column up or down to the next position that exists.
A line with more than k characters.
A longer line with more than k character.
A short line.
Rotate here: ------v--
This is long enough.
This is not enough.
Wrapping around to the first line.
Output:
A line with more thtn k characters.
A longer line with aore than k character.
A short line.
Rotate here: ------m--
This is long enoughv
This is not enough.
Wrapping around to .he first line.
Rotating the k-th column of the same input where 35 < k < 42 would yield the input text unchanged.
Related: https://codegolf.stackexchange.com/questions/182363/rotate-a-column