Karoy Lorentey
Karoy Lorentey
Update: on reflection, I found an important use case for member-subscript operations in `BitSet`, so I went ahead and added them. ```swift extension BitSet { public subscript(member member: Int) ->...
... and now `BitSet` no longer keeps a running total of its element count, so the member-subscript is potentially faster. (This also gets rid of the need to update the...
> this will make archives incompatible between 32-bit and 64-bit platforms. D'oh. Very nice catch, thank you! The right thing to do would be to switch to consistently using `UInt32`...
> "Multisets" or "bags" are sometimes called "counted sets", so is there a better name than BitSet.Counted? This is a fair point, but I don't think it'd be a true...
> However, if the `BitSet.Index` was `Int`, then could the `Collection` subscripts be implemented to work as above, by accepting any range of `elements`/`indices`? The premise here is unacceptable! 😄...
Cc @Azoy
Bazel is not a supported build system for this package. That said, this is very likely a real issue in the compiler, and it would be useful if we could...
Yep, this is definitely a bug! (Beware, `SortedSet` isn't ready for production use yet. These reports are very much appreciated, though!)
I concur! We can't say anything about the order of items in a `SortedSet` in this case -- because the concept of "sorting" isn't well-defined for types that don't correctly...
> It is interesting to know what the creation/destruction overhead is for a data structure (also as a function of "n" if reserving a certain capacity for creation and to...