Rename sortedBy to sortByIt
This commit is contained in:
parent
d3946aa621
commit
2d879b96df
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue