Annotation of 43BSD/contrib/icon/book/07/fib2.icn, revision 1.1

1.1     ! root        1: procedure fib(i)
        !             2:    static fibmem
        !             3:    local j
        !             4:    initial {
        !             5:       fibmem := table()
        !             6:       fibmem[1] := fibmem[2] := 1
        !             7:       }
        !             8:    if j := \fibmem[i] then return j
        !             9:    else return fibmem[i] := fib(i - 1) + fib(i - 2)
        !            10: end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.