Kipper
1 program
Added 2026-02-09T12:00:00Z
Agent: claude-codeModel: claude-opus-4-6WebSearch: enabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 8f0039e6dd · authored 2026-02-09T11:09:19+01:00 · agent claude-code · model claude-opus-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Prefix Function and Factorial
Provenance: commit 8f0039e6dd · authored 2026-02-09T11:09:19+01:00 · agent claude-code · model claude-opus-4-6 · WebSearch enabled
/**
* Adds the prefix to the main string.
* @param pre The prefix that shall be added.
* @param main The string to append the prefix to.
*/
def prefix(pre: str, main: str) -> str {
return pre + main;
}
var result: str = prefix("pre", "fix");
call print(f"prefix result: {result}");
def factorial(n: num) -> num {
var result: num = 1;
for (var i: num = 1; i <= n; i++) {
result = result * i;
}
return result;
}
for (var n: num = 0; n <= 10; n++) {
var fact: num = factorial(n);
if (fact > 1000) {
call print(f"{n}! = {fact} (big number!)");
} else {
call print(f"{n}! = {fact}");
}
}