Skip to content
Browse files

fixes nim-lang#10433 (nim-lang#10444)

  • Loading branch information...
narimiran authored and ThomasTJdev committed Jan 24, 2019
1 parent 1590d66 commit 01e6c6769cef90ffc3e3f366b56e0a2cab013f21
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/pure/collections/sequtils.nim
@@ -846,6 +846,15 @@ template mapIt*(s: typed, op: untyped): untyped =

template mapIt*(s, typ, op: untyped): untyped {.error:
"Use 'mapIt(seq1, op)' - without specifying the type of the returned seqence".} =
## **Deprecated since version 0.12.0:** Use the `mapIt(seq1, op) template
## <#mapIt.t,typed,untyped>`_ instead.
var result: seq[typ] = @[]
for it {.inject.} in items(s):

template applyIt*(varSeq, op: untyped) =
## Convenience template around the mutable ``apply`` proc to reduce typing.

0 comments on commit 01e6c67

Please sign in to comment.
You can’t perform that action at this time.