Smalltalk-82
1 program
Added 2026-02-13T08:43:51Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit e6cf22e538 · authored 2026-02-13T09:45:14+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
Provenance: commit e6cf22e538 · authored 2026-02-13T09:45:14+01:00 · agent claude-code · model sonnet · WebSearch disabled
Integer extend [
factorial [
self <= 0 ifTrue: [^1].
^self * (self - 1) factorial
]
]
Transcript show: '5 factorial = ', 5 factorial printString; cr.