From c19fb7b366d1ccdf209c5121112fba948ca4cbf8 Mon Sep 17 00:00:00 2001 From: dumndummer Date: Wed, 28 Jan 2015 21:44:52 +0000 Subject: [PATCH] Update sequtils.nim Renamed param name 'pred' to 'op' in mapIt template to better correspond with map proc in system module --- 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 befc9bacb5..a0e9280f54 100644 --- a/lib/pure/collections/sequtils.nim +++ b/lib/pure/collections/sequtils.nim @@ -382,7 +382,7 @@ template foldr*(sequence, operation: expr): expr = result = operation result -template mapIt*(seq1, typ, pred: expr): expr = +template mapIt*(seq1, typ, op: expr): expr = ## Convenience template around the ``map`` proc to reduce typing. ## ## The template injects the ``it`` variable which you can use directly in an @@ -400,7 +400,7 @@ template mapIt*(seq1, typ, pred: expr): expr = result.add(pred) result -template mapIt*(varSeq, pred: expr) = +template mapIt*(varSeq, op: expr) = ## Convenience template around the mutable ``map`` proc to reduce typing. ## ## The template injects the ``it`` variable which you can use directly in an