Merge pull request #4964 from jangko/orderedtable_initialsize
fixes #4940
This commit is contained in:
commit
0f3419685f
1 changed files with 1 additions and 1 deletions
|
|
@ -756,7 +756,7 @@ proc newOrderedTable*[A, B](initialSize=64): OrderedTableRef[A, B] =
|
||||||
## values for this you could use the ``nextPowerOfTwo`` proc from the
|
## values for this you could use the ``nextPowerOfTwo`` proc from the
|
||||||
## `math <math.html>`_ module or the ``rightSize`` proc from this module.
|
## `math <math.html>`_ module or the ``rightSize`` proc from this module.
|
||||||
new(result)
|
new(result)
|
||||||
result[] = initOrderedTable[A, B]()
|
result[] = initOrderedTable[A, B](initialSize)
|
||||||
|
|
||||||
proc newOrderedTable*[A, B](pairs: openArray[(A, B)]): OrderedTableRef[A, B] =
|
proc newOrderedTable*[A, B](pairs: openArray[(A, B)]): OrderedTableRef[A, B] =
|
||||||
## creates a new ordered hash table that contains the given `pairs`.
|
## creates a new ordered hash table that contains the given `pairs`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue