parent
be78b35bb8
commit
39487f9728
1 changed files with 2 additions and 1 deletions
|
|
@ -744,7 +744,8 @@ iterator mvalues*[A, B](t: var Table[A, B]): var B =
|
||||||
yield t.data[h].val
|
yield t.data[h].val
|
||||||
assert(len(t) == L, "the length of the table changed while iterating over it")
|
assert(len(t) == L, "the length of the table changed while iterating over it")
|
||||||
|
|
||||||
iterator allValues*[A, B](t: Table[A, B]; key: A): B =
|
iterator allValues*[A, B](t: Table[A, B]; key: A): B {.deprecated:
|
||||||
|
"Deprecated since v1.4; tables with duplicated keys are deprecated".} =
|
||||||
## Iterates over any value in the table ``t`` that belongs to the given ``key``.
|
## Iterates over any value in the table ``t`` that belongs to the given ``key``.
|
||||||
##
|
##
|
||||||
## Used if you have a table with duplicate keys (as a result of using
|
## Used if you have a table with duplicate keys (as a result of using
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue