Rename sortedBy to sortByIt

This commit is contained in:
def
2015-02-21 12:30:06 +01:00
parent d3946aa621
commit 2d879b96df

View File

@@ -417,7 +417,7 @@ template mapIt*(varSeq, op: expr) =
let it {.inject.} = varSeq[i]
varSeq[i] = op
template sortedBy*(seq1, op: expr): expr =
template sortByIt*(seq1, op: expr): expr =
## Convenience template around the ``sorted`` proc to reduce typing.
##
## The template injects the ``it`` variable which you can use directly in an