in reply to Why are "push", "pop", "shift" and "unshift" so named?

I think "shift" comes from digital electronics, i.e., the 'shift register'. In textbooks, these are drawn as a group of little boxes, 1 box per bit, and data is shifted in from left to right (low order bit first). I've never seen the term "unshift" outside of perl, but I think it's a good term for "the opposite of shift".
  • Comment on Re: Why are "push", "pop", "shift" and "unshift" so named?