summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authordumndummer <darkdonny@gmail.com>2015-02-02 14:42:00 +0000
committerdumndummer <darkdonny@gmail.com>2015-02-02 14:42:00 +0000
commit07f42fa612db998ec88dade7ea3140ba6a15fb5b (patch)
tree815645cb44b8995e486d80b8506abcae3ffc33a7 /lib
parentc19fb7b366d1ccdf209c5121112fba948ca4cbf8 (diff)
downloadNim-07f42fa612db998ec88dade7ea3140ba6a15fb5b.tar.gz
Changed name 'pred' to 'op' in mapIt template
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/collections/sequtils.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/collections/sequtils.nim b/lib/pure/collections/sequtils.nim
index a0e9280f5..b527b9368 100644
--- a/lib/pure/collections/sequtils.nim
+++ b/lib/pure/collections/sequtils.nim
@@ -397,7 +397,7 @@ template mapIt*(seq1, typ, op: expr): expr =
   ##   assert strings == @["4", "8", "12", "16"]
   var result {.gensym.}: seq[typ] = @[]
   for it {.inject.} in items(seq1):
-    result.add(pred)
+    result.add(op)
   result
 
 template mapIt*(varSeq, op: expr) =
@@ -413,7 +413,7 @@ template mapIt*(varSeq, op: expr) =
   ##   assert nums[0] + nums[3] == 15
   for i in 0 .. <len(varSeq):
     let it {.inject.} = varSeq[i]
-    varSeq[i] = pred
+    varSeq[i] = op
 
 template newSeqWith*(len: int, init: expr): expr =
   ## creates a new sequence, calling `init` to initialize each value. Example: