Update algorithm.nim
This commit is contained in:
parent
78b7625417
commit
e7bc828ef3
1 changed files with 1 additions and 2 deletions
|
|
@ -210,8 +210,7 @@ template sortedByIt*(seq1, op: expr): expr =
|
|||
## p2: Person = (name: "p2", age: 20)
|
||||
## p3: Person = (name: "p3", age: 30)
|
||||
## p4: Person = (name: "p4", age: 30)
|
||||
##
|
||||
## var people = @[p1,p2,p4,p3]
|
||||
## people = @[p1,p2,p4,p3]
|
||||
##
|
||||
## echo people.sortedByIt(it.name)
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue