tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
10
Task/Optional-parameters/Racket/optional-parameters.rkt
Normal file
10
Task/Optional-parameters/Racket/optional-parameters.rkt
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#lang racket
|
||||
|
||||
(define (sort-table table
|
||||
[ordering string<=?]
|
||||
[column 0]
|
||||
[reverse? #f])
|
||||
(sort table (if reverse?
|
||||
(negate ordering)
|
||||
ordering)
|
||||
#:key (λ (row) (list-ref row column))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue