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