Alex Rivera | Logout

Scala mutable BitSet, where are the mutating operations?

Asked 2012-02-22T11:04:24.307
11

I'm trying to add two BitSet objects together (mutating one of them). This should be an efficient operation for bitsets. But it seems that the only operation that does this is ++=. Looking at the source, this doesn't seem to treat adding bitset differently.

Is it true, that in Scala 2.9.1, there are no efficient logical update operations on mutable bitsets defined? That's rather pointless, isn't it?

Edit
Report

1 Answer

2

Responding to the comments I've filed an enhancement request.

Since I'm answering my own question (which doesn't have a positive answer) I'll just add some links to Bitset implementations I stumbled across. Currently I'm using the Java BitSet, but there seem to be more efficient alternatives:

answered 2012-02-22T19:19:25.283

Your Answer