Bosatsu
1 program
Added 2026-02-11T00:00:00Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit dc7ccf01bd · authored 2026-02-11T12:58:35+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 dc7ccf01bd · authored 2026-02-11T12:58:35+01:00 · agent claude-code · model sonnet · WebSearch disabled
# Factorial function in Bosatsu
package Factorial
def factorial(n: Int) -> Int:
match n:
case 0: 1
case _: n.times(factorial(n.sub(1)))
def main(_args):
result = factorial(5)
trace("Factorial of 5 is", result)