From: Human Dunnil Date: 2007-05-12T18:21:48+09:00 Subject: Shift Operators - I don't get it? What's the application?!? Hello folks, Sorry for dump question, but I really don't get it! I was looking at one of the Ruby Quiz solutions (Countdown) in Ruby Quiz book, it uses << operator, which I don't understand! I checked WIkipedia and Ruby Doc, I know what it does, but can't understand how it is useful and what's its application? BTW, I saw a pseudo code in Wikipedia but can't translate it to ruby: c := 0 while b ≠ 0 if (b and 1) ≠ 0 c := c + a shift a left by one shift b right by one return c May you please give me a clue about it? Thanks in advance, - Dunnil