From: Explosiv0SX Date: 2005-10-17T11:07:39+09:00 Subject: Re: How to get non-unique elements from an array? You could just sort the array, then iterate. If the previous iteration value is equal to the current, you have a non-unique. This would work with string or numeric data types. Rick On Oct 16, 2005, at 9:44 PM, Lyndon Samson wrote: > 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 = bn2 = 0 >> a.each {|el|(bn2 |= (1<> (1<> 0.upto(a.length) { |bitNdx| puts bitNdx if (bn2 & ( 1<> = 0 } >> >> >> >> > > > -- > Into RFID? www.rfidnewsupdate.com > Simple, > fast, news. >