2
$\begingroup$

This is a repost from another exchange.

I was going to write a paper about code to rotate elements in an array, but I realized I have no idea why rotation towards the start of the array is “left” and “right” goes towards the end. I’ve seen horizontal tape diagrams of arrays, with elements going left-to-right (i.e. Western-culture reading order), but I don’t know if that’s the actual reason.

Maybe finding out who first came up with the convention would help.

$\endgroup$
1
  • $\begingroup$ ?? perhaps because English is written left-to-right, and therefore a list $[a,b,c,d,e]$ is written with the "start" on the left and the "finish" on the right. As you said. But of course, to answer this we need references not speculation. $\endgroup$ Mar 7, 2019 at 14:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.