New returns an initialised Bitset with optional initial bits v.
(v ...bool)
| 41 | |
| 42 | // New returns an initialised Bitset with optional initial bits v. |
| 43 | func New(v ...bool) *Bitset { |
| 44 | b := &Bitset{numBits: 0, bits: make([]byte, 0)} |
| 45 | b.AppendBools(v...) |
| 46 | |
| 47 | return b |
| 48 | } |
| 49 | |
| 50 | // Clone returns a copy. |
| 51 | func Clone(from *Bitset) *Bitset { |