From: Lyndon Samson Date: 2005-10-17T10:44:35+09:00 Subject: Re: How to get non-unique elements from an array? ------=_Part_16588_17409819.1129513472547 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Funny, doesnt work when an item in the array > 10... Plus, reading the documentation ( doh! ) I can access a Bignum bit with [] On 10/17/05, Lyndon Samson wrote: > > Not very elegant, but a different approach... > > bn =3D bn2 =3D 0 > a.each {|el|(bn2 |=3D (1< 0.upto(a.length) { |bitNdx| puts bitNdx if (bn2 & ( 1< > > -- Into RFID? www.rfidnewsupdate.com Simple, fast, news. ------=_Part_16588_17409819.1129513472547--