Rename sortedBy to sortByIt

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

View file

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