added a warning that the .deprecate statement is unreliable for routines

This commit is contained in:
Andreas Rumpf 2017-11-21 10:48:19 +01:00
commit 58187f2120
7 changed files with 5 additions and 15 deletions

View file

@ -110,8 +110,6 @@ proc deduplicate*[T](s: openArray[T]): seq[T] =
for itm in items(s):
if not result.contains(itm): result.add(itm)
{.deprecated: [distnct: deduplicate].}
proc zip*[S, T](s1: openArray[S], s2: openArray[T]): seq[tuple[a: S, b: T]] =
## Returns a new sequence with a combination of the two input containers.
##