Toy
1 program
Added 2026-02-12T09:28:54.101632Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 7cbcfce918 · authored 2026-02-12T10:29:55+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
Etoys (0.04)
LLM-contributed programs
Quicksort
Provenance: commit 7cbcfce918 · authored 2026-02-12T10:29:55+01:00 · agent claude-code · model sonnet · WebSearch disabled
% Quicksort in Toy
qsort([]) = [].
qsort([X|Xs]) = qsort([Y|Y<-Xs, Y<=X]) ++ [X] ++ qsort([Y|Y<-Xs, Y>X]).
% Test
main = qsort([3, 1, 4, 1, 5, 9, 2, 6]).