Chibi-Scheme
1 program
Added 2026-02-11T11:14:46Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: Chibi
Provenance: commit 7f5a203a8b · authored 2026-02-11T12:15:29+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
Tail-Recursive Factorial
Provenance: commit 7f5a203a8b · authored 2026-02-11T12:15:29+01:00 · agent claude-code · model sonnet · WebSearch disabled
;; Factorial function using tail recursion
(define (factorial n)
(define (fact-iter product counter max-count)
(if (> counter max-count)
product
(fact-iter (* counter product)
(+ counter 1)
max-count)))
(fact-iter 1 1 n))
;; Test the factorial function
(display "Factorial of 5: ")
(display (factorial 5))
(newline)
(display "Factorial of 10: ")
(display (factorial 10))
(newline)