diff options
author | dumndummer <darkdonny@gmail.com> | 2015-01-28 21:44:52 +0000 |
---|---|---|
committer | dumndummer <darkdonny@gmail.com> | 2015-01-28 21:44:52 +0000 |
commit | c19fb7b366d1ccdf209c5121112fba948ca4cbf8 (patch) | |
tree | 515d95ae91bbf43ce70fea3dacaadeacdf25b73e | |
parent | a4b27622491c9844da2ca15bb8cc3ec36356484e (diff) | |
download | Nim-c19fb7b366d1ccdf209c5121112fba948ca4cbf8.tar.gz |
Update sequtils.nim
Renamed param name 'pred' to 'op' in mapIt template to better correspond with map proc in system module
-rw-r--r-- | lib/pure/collections/sequtils.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/collections/sequtils.nim b/lib/pure/collections/sequtils.nim index befc9bacb..a0e9280f5 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 |