|
|
BSD 4.3
procedure fib(i)
static fibmem
local j
initial {
fibmem := table()
fibmem[1] := fibmem[2] := 1
}
if j := \fibmem[i] then return j
else return fibmem[i] := fib(i - 1) + fib(i - 2)
end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.