mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
@@ -744,7 +744,8 @@ iterator mvalues*[A, B](t: var Table[A, B]): var B =
|
||||
yield t.data[h].val
|
||||
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``.
|
||||
##
|
||||
## Used if you have a table with duplicate keys (as a result of using
|
||||
|
||||
Reference in New Issue
Block a user