deprecate tables.allValues; continuation of #15047 (#15092)

This commit is contained in:
Miran
2020-07-28 11:40:56 +02:00
committed by GitHub
parent be78b35bb8
commit 39487f9728

View File

@@ -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