[REBOL] Re: [Mutability bitset] Puzzle (*very hard*!)
From: greggirwin:mindspring at: 29-Sep-2006 9:40
Hi Ladislav,
>> LM> *Is there a way how to discern equal bitsets that don't reference
>> LM> "identical" underlying bitset?*
>>
>> My first instinct would be to toggle a bit in one bitset, compare
>> them, then toggle it back.
>>
LM> yes, it was easy, as it looks. The only hard part may be, if the
LM> bitsets are a bit "nonstandard", like e.g. #[bitset! #{00}]
You should always be able to use an integer! value with
FIND/INSERT/REMOVE, to toggle the low bit.
You may also want to compare the bitset lengths, if that's important.
-- Gregg