mu-Prolog

1 program Added 2026-03-17T10:05:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: MU-Prolog, Mu-Prolog
Provenance: commit 27f25dda93 · authored 2026-03-17T03:28:20+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

MProlog (0.56)Nu-Prolog (0.50)Qu-Prolog (0.50)Micro-Prolog (0.39)B-Prolog (0.39)

LLM-contributed programs

Quicksort

Provenance: commit 27f25dda93 · authored 2026-03-17T03:28:20+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.pl · license: Public Domain · added: 2026-03-17T10:05:00Z
qsort([], []).
qsort([H|T], Sorted) :-
    partition(H, T, Less, Greater),
    qsort(Less, SortedLess),
    qsort(Greater, SortedGreater),
    append(SortedLess, [H|SortedGreater], Sorted).

partition(_, [], [], []).
partition(Pivot, [H|T], [H|Less], Greater) :-
    H =< Pivot, !,
    partition(Pivot, T, Less, Greater).
partition(Pivot, [H|T], Less, [H|Greater]) :-
    partition(Pivot, T, Less, Greater).

append([], L, L).
append([H|T], L, [H|R]) :- append(T, L, R).

:- qsort([3, 1, 4, 1, 5, 9, 2, 6, 5, 3], S), write(S), nl.

Contribute — propose a file extension

Tell us where to find evidence about mu-Prolog (mapped to pl/mu_prolog). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/mu-Prolog/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Mu Mu6 →