LSharp
1 program
Added 2026-03-17T12:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: L#, L-Sharp
Provenance: commit 03c93929ef · authored 2026-03-17T02:18:24+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
3 sources · pl_id:
pl/lRelated languages
LLM-contributed programs
Factorial
Provenance: commit 03c93929ef · authored 2026-03-17T02:18:24+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
; Factorial function in LSharp (L#)
; A Lisp dialect for the .NET CLR
(define (factorial n)
(if (<= n 1)
1
(* n (factorial (- n 1)))))
(display "Factorial examples:")
(newline)
(let loop ((i 1))
(when (<= i 10)
(display i)
(display "! = ")
(display (factorial i))
(newline)
(loop (+ i 1))))
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.)