From 07f42fa612db998ec88dade7ea3140ba6a15fb5b Mon Sep 17 00:00:00 2001 From: dumndummer Date: Mon, 2 Feb 2015 14:42:00 +0000 Subject: [PATCH] Changed name 'pred' to 'op' in mapIt template --- lib/pure/collections/sequtils.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pure/collections/sequtils.nim b/lib/pure/collections/sequtils.nim index a0e9280f54..b527b93687 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 ..