Yash
1 program
Added 2026-02-10T20:45:51Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: Yet Another Shell
Provenance: commit 347a2d6750 · authored 2026-02-10T21:46:44+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
Fibonacci Sequence Generator
Provenance: commit 347a2d6750 · authored 2026-02-10T21:46:44+01:00 · agent claude-code · model sonnet · WebSearch disabled
#!/usr/bin/env yash
# Fibonacci sequence generator in Yash
fib() {
typeset n=$1 a=0 b=1 temp
if [ "$n" -le 0 ]; then
return
fi
printf '%d' "$a"
if [ "$n" -eq 1 ]; then
printf '
'
return
fi
printf ' %d' "$b"
n=$((n - 2))
while [ "$n" -gt 0 ]; do
temp=$((a + b))
a=$b
b=$temp
printf ' %d' "$temp"
n=$((n - 1))
done
printf '
'
}
# Generate first 10 Fibonacci numbers
fib 10