Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
let myCompare (s1:string) (s2:string) =
|
||||
match compare s2.Length s1.Length with
|
||||
| 0 -> compare (s1.ToLower()) (s2.ToLower())
|
||||
| X -> X
|
||||
|
||||
let strings = ["Here"; "are"; "some"; "sample"; "strings"; "to"; "be"; "sorted"]
|
||||
|
||||
let sortedStrings = List.sortWith myCompare strings
|
||||
|
||||
printfn "%A" sortedStrings
|
||||
Loading…
Add table
Add a link
Reference in a new issue