DefaultNew returns a new HashMap instance with default values
()
| 22 | |
| 23 | // DefaultNew returns a new HashMap instance with default values |
| 24 | func DefaultNew() *HashMap { |
| 25 | return &HashMap{ |
| 26 | capacity: defaultCapacity, |
| 27 | table: make([]*node, defaultCapacity), |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | // New creates a new HashMap instance with the specified size and capacity |
| 32 | func New(size, capacity uint64) *HashMap { |