Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
3
Task/Optional-parameters/OCaml/optional-parameters-1.ml
Normal file
3
Task/Optional-parameters/OCaml/optional-parameters-1.ml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
let sort_table ?(ordering = compare) ?(column = 0) ?(reverse = false) table =
|
||||
let cmp x y = ordering (List.nth x column) (List.nth y column) * (if reverse then -1 else 1) in
|
||||
List.sort cmp table
|
||||
Loading…
Add table
Add a link
Reference in a new issue