Larceny
1 program
Added 2026-02-10T12:00:00Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 1853086329 · authored 2026-02-10T20:13:29+01:00 · agent claude-code · model sonnet
Sources mentioning this language
2 sources · pl_id:
pl/larcenyRelated languages
LLM-contributed programs
Factorial Computation
Provenance: commit 1853086329 · authored 2026-02-10T20:13:29+01:00 · agent claude-code · model sonnet · WebSearch disabled
;;; Factorial computation in Larceny Scheme
;;; Demonstrates recursive factorial function
(define (factorial n)
(if (<= n 1)
1
(* n (factorial (- n 1)))))
(define (main)
(display "Factorial of 5: ")
(display (factorial 5))
(newline)
(display "Factorial of 10: ")
(display (factorial 10))
(newline))
(main)
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.)