NewOrderedMapWithCapacity creates a map with enough pre-allocated space to hold the specified number of elements.
(capacity int)
| 14 | // NewOrderedMapWithCapacity creates a map with enough pre-allocated space to |
| 15 | // hold the specified number of elements. |
| 16 | func NewOrderedMapWithCapacity(capacity int) *OrderedMap { |
| 17 | return &OrderedMap{ |
| 18 | kv: make(map[interface{}]*Element, capacity), |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | // Get returns the value for a key. If the key does not exist, the second return |
| 23 | // parameter will be false and the value will be nil. |
no outgoing calls
searching dependent graphs…