summary refs log tree commit diff stats
path: root/lib/pure/collections
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2020-07-28 11:40:56 +0200
committerGitHub <noreply@github.com>2020-07-28 11:40:56 +0200
commit39487f9728c03e98109b70c2d169e6366b9a8337 (patch)
treecb1d2e0f0e6fe49d4b32bd102e596addf7471849 /lib/pure/collections
parentbe78b35bb8ec45e995e2e27058fc925da11db550 (diff)
downloadNim-39487f9728c03e98109b70c2d169e6366b9a8337.tar.gz
deprecate tables.allValues; continuation of #15047 (#15092)
Diffstat (limited to 'lib/pure/collections')
-rw-r--r--lib/pure/collections/tables.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/collections/tables.nim b/lib/pure/collections/tables.nim
index a8742bdbe..b1354eec3 100644
--- a/lib/pure/collections/tables.nim
+++ b/lib/pure/collections/tables.nim
@@ -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