Xtlang
2 programs
Added 2026-02-08T15:23:24.908508Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: XTLang, xtlang
Provenance: commit f1166ceae3 · authored 2026-02-08T16:24:22+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 Function
Provenance: commit f1166ceae3 · authored 2026-02-08T16:24:22+01:00 · agent claude-code · model sonnet · WebSearch disabled
;; Xtlang factorial function
(bind-func factorial
(lambda (n:i64)
(if (<= n 1)
1
(* n (factorial (- n 1))))))
;; Test the factorial function
(bind-func test_factorial
(lambda ()
(let ((result (factorial 5)))
(printf "Factorial of 5 is: %lld\n" result)
result)))
;; Call the test
(test_factorial)
Factorial Function
Provenance: commit 1d8afbef4f · authored 2026-02-07T15:11:45+01:00 · agent claude-code · model sonnet · WebSearch disabled
(bind-func factorial
(lambda (n:i64)
(if (<= n 1)
1
(* n (factorial (- n 1))))))
(bind-func test_factorial
(lambda ()
(printf "factorial(5) = %lld\n" (factorial 5))
(printf "factorial(10) = %lld\n" (factorial 10))
void))