NewSet returns a new Set with a given maximum size. The set can contain numbers in [0, max-1].
(max uint32)
| 19 | // NewSet returns a new Set with a given maximum size. |
| 20 | // The set can contain numbers in [0, max-1]. |
| 21 | func NewSet(max uint32) *Set { |
| 22 | return &Set{ |
| 23 | sparse: make([]uint32, max), |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | // Init initializes a Set to have a given maximum size. |
| 28 | // The set can contain numbers in [0, max-1]. |
no outgoing calls
no test coverage detected
searching dependent graphs…