Moscow ML
1 program
Added 2026-02-10T14:30:00Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: MoscowML, mosml
Provenance: commit 4909a72717 · authored 2026-02-10T16:50:45+01:00 · agent claude-code · model sonnet
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Quicksort
Provenance: commit 4909a72717 · authored 2026-02-10T16:50:45+01:00 · agent claude-code · model sonnet · WebSearch disabled
(* Quicksort implementation in Moscow ML *)
fun quicksort [] = []
| quicksort (pivot::rest) =
let
val (less, greater) = List.partition (fn x => x < pivot) rest
in
quicksort less @ [pivot] @ quicksort greater
end;
(* Example usage *)
val test_list = [3, 7, 1, 9, 2, 5, 8, 4, 6];
val sorted = quicksort test_list;