// Returns a new Bitset. Set argument to the expected maximum number or -1.
Returns a new Bitset. Set argument to the expected maximum number or -1.
// Returns a new Bitset . Set argument to the expected maximum number or - 1 .
func New(max int) *Bitset {
	bs := new(Bitset)
	bs.max = max
	bs.words = make(map[int]word)
	if max >= 0 {
		for i := max / bitsPerWord; i >= 0; i-- {
			bs.words[i] = 0
		}
	}
	runtime.SetFinalizer(bs, destroy)
	return bs
}
func New ( max int ) * Bitset { bs := new ( Bitset ) bs . max = max bs . words = make ( map [ int ] word ) if max >= 0 { for i := max / bitsPerWord ; i >= 0 ; i -- { bs . words [ i ] = 0 } } runtime . SetFinalizer ( bs , destroy ) return bs }
Returns a new Bitset.
Returns a new Bitset .