Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
let mycmp s1 s2 =
|
||||
if String.length s1 <> String.length s2 then
|
||||
compare (String.length s2) (String.length s1)
|
||||
else
|
||||
String.compare (String.lowercase s1) (String.lowercase s2)
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# let strings = ["Here"; "are"; "some"; "sample"; "strings"; "to"; "be"; "sorted"];;
|
||||
val strings : string list =
|
||||
["Here"; "are"; "some"; "sample"; "strings"; "to"; "be"; "sorted"]
|
||||
# List.sort mycmp strings;;
|
||||
- : string list =
|
||||
["strings"; "sample"; "sorted"; "Here"; "some"; "are"; "be"; "to"]
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# let strings = [|"Here"; "are"; "some"; "sample"; "strings"; "to"; "be"; "sorted"|];;
|
||||
val strings : string array =
|
||||
[|"Here"; "are"; "some"; "sample"; "strings"; "to"; "be"; "sorted"|]
|
||||
# Array.sort mycmp strings;;
|
||||
- : unit = ()
|
||||
# strings;;
|
||||
- : string array =
|
||||
[|"strings"; "sample"; "sorted"; "Here"; "some"; "are"; "be"; "to"|]
|
||||
Loading…
Add table
Add a link
Reference in a new issue