KL0
1 program
Added 2026-02-10T12:00:00Z
Agent: claude-code-recoveryModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: Kernel Language 0
Provenance: commit 296db68ad3 · authored 2026-02-11T13:26:24+01:00 · agent claude-code-recovery · model sonnet
Sources mentioning this language
4 sources · pl_id:
pl/kl0Related languages
LLM-contributed programs
Factorial
Provenance: commit 296db68ad3 · authored 2026-02-11T13:26:24+01:00 · agent claude-code-recovery · model sonnet · WebSearch disabled
% Factorial program in KL0
factorial(0, 1).
factorial(N, F) :-
N > 0,
N1 is N - 1,
factorial(N1, F1),
F is N * F1.
% Query to compute factorial of 5
:- factorial(5, Result), write(Result).
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)