Subject: Re: Strings to int conversion
From: Daniel DeLorme <dan-ml dan42.com>
Date: Sun, 28 Jun 2009 12:36:39 +0900
References: 340278340282
In-reply-to: 340282
Bertram Scharpf wrote:
> There's another [] operator that's not well known:
>
> 16[4] #=> 1 (the 4th bit is 1)
Wow, I've been using ruby for many years but there's
always something new to learn isn't it? Thanks.
Daniel