mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 03:32:32 +00:00
Rename sortedBy to sortByIt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user