From ef820769a47722cd33935dd94642aca9ecc09a8b Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Sat, 13 Oct 2018 00:23:33 -0700 Subject: [PATCH] deprecate accumulateResult => sequtils.toSeq (#8666) --- lib/system.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/system.nim b/lib/system.nim index 08d4d94119..836ea84632 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -2754,8 +2754,11 @@ when not defined(nimscript) and hasAlloc: {.warning: "GC_getStatistics is a no-op in JavaScript".} "" -template accumulateResult*(iter: untyped) = +template accumulateResult*(iter: untyped) {.deprecated: "use `sequtils.toSeq` instead (more hygienic, sometimes more efficient)".} = ## helps to convert an iterator to a proc. + ## See also `sequtils.toSeq` which is more hygienic and efficient. + ## + ## **Deprecated since v0.19.2:** use toSeq instead result = @[] for x in iter: add(result, x)