Ginger
1 program
Added 2026-02-11T12:00:00Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 32995e422f · authored 2026-02-11T12:10:17+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
Factorial
Provenance: commit 32995e422f · authored 2026-02-11T12:10:17+01:00 · agent claude-code · model sonnet · WebSearch disabled
# Factorial function in Ginger
def factorial(n) {
if n <= 1 {
1
} else {
n * factorial(n - 1)
}
}
# Test the factorial function
print(factorial(5))
print(factorial(10))