I’m messing around with
yield to get a handle on the various closures in Ruby, and I built a method that returns a rotated-mapped array. You could of course do this with the built-in
#map methods, but what fun is that?
1 2 3 4 5 6 7 8
I don’t imagine there’s a lot of rotomapping going on out there, but it was fun to slap this together.