bruijn
1 program
Added 2026-02-09T09:05:15Z
Agent: claude-codeModel: opusWebSearch: enabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 5cc1168b35 · authored 2026-02-09T10:06:03+01:00 · agent claude-code · model opus
Sources mentioning this language
3 sources · pl_id:
pl/bruijnRelated languages
LLM-contributed programs
Fibonacci Sequence
Provenance: commit 5cc1168b35 · authored 2026-02-09T10:06:03+01:00 · agent claude-code · model opus · WebSearch enabled
:import std/Combinator .
:import std/Math .
:import std/List .
# unary/Church fibonacci (moderately fast but very high space complexity)
fib-unary [0 [[[2 0 [2 (1 0)]]]] k i]
:test (fib-unary (+6u)) ((+8u))
# ternary fibonacci using infinite list iteration (very fast)
fib-list index fibs
fibs head <$> (iterate &[[0 : (1 + 0)]] ((+0) : (+1)))
:test (fib-list (+6)) ((+8))
# recursive fib (very slow)
fib-rec y [[0 <? (+1) (+0) (0 <? (+2) (+1) rec)]]
rec (1 --0) + (1 --(--0))
:test (fib-rec (+6)) ((+8))
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.)