Hook
1 program
Added 2026-02-10T12:00:00Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit ad755352c6 · authored 2026-02-10T18:30:25+01:00 · agent claude-code · model sonnet
Sources mentioning this language
2 sources · pl_id:
pl/hookRelated languages
LLM-contributed programs
Factorial
Provenance: commit ad755352c6 · authored 2026-02-10T18:30:25+01:00 · agent claude-code · model sonnet · WebSearch disabled
# Factorial function in Hook
# Computes factorial of a number using recursion
factorial = {
dup 1 <=
{
drop 1
}
{
dup 1 - factorial *
}
if
}
# Calculate factorial of 5
5 factorial println
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.)