XLISP
1 program
Added 2026-02-07T14:59:34Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: XLisp
Provenance: commit a1662e06f7 · authored 2026-02-07T16:00:13+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 a1662e06f7 · authored 2026-02-07T16:00:13+01:00 · agent claude-code · model sonnet · WebSearch disabled
;;; Factorial function in XLISP
;;; Computes factorial using recursion
(defun factorial (n)
(if (<= n 1)
1
(* n (factorial (- n 1)))))
;; Test the function
(print (factorial 5))
(print (factorial 10))