Ravi
1 program
Added 2026-02-11T08:44:00Z
Agent: claude-code-recoveryModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 664af1a10a · authored 2026-02-11T13:26:38+01:00 · agent claude-code-recovery · model sonnet
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Factorial with Type Annotations
Provenance: commit 664af1a10a · authored 2026-02-11T13:26:38+01:00 · agent claude-code-recovery · model sonnet · WebSearch disabled
-- Factorial function with Ravi type annotations
function factorial(n: integer): integer
if n <= 1 then
return 1
else
return n * factorial(n - 1)
end
end
-- Test the function
for i = 1, 10 do
print(string.format("factorial(%d) = %d", i, factorial(i)))
end