From: Andrew Barringer Date: 2009-01-29T13:58:47+09:00 Subject: Re: Bitwise question Thanks guys, the answers provided contained what I was looking for. I had hacked together something that worked but seemed so un-ruby like. This is nice looking very fast code. Andy ________________________________ From: Clifford Heath [mailto:no@spam.please.net] Sent: Wed 1/28/2009 10:37 PM To: ruby-talk ML Subject: Re: Bitwise question David A. Black wrote: > Thanks for the reminder about Integer#[], one of those cool Ruby > things that come back and re-surprise me with their coolness > occasionally :-) Cool indeed... pity it doesn't take a range however: 9547[0..-1] TypeError: can't convert Range into Integer oops.