PolyML
1 program
Added 2026-02-10T11:28:10Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: Poly/ML
Provenance: commit 050e285649 · authored 2026-02-10T12:29:13+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 050e285649 · authored 2026-02-10T12:29:13+01:00 · agent claude-code · model sonnet · WebSearch disabled
fun quicksort [] = []
| quicksort (pivot::rest) =
let
val (smaller, larger) = List.partition (fn x => x < pivot) rest
in
quicksort smaller @ [pivot] @ quicksort larger
end;
val numbers = [64, 34, 25, 12, 22, 11, 90];
val sorted = quicksort numbers;
print "Original: ";
app (fn x => print (Int.toString x ^ " ")) numbers;
print "\nSorted: ";
app (fn x => print (Int.toString x ^ " ")) sorted;
print "\n";