Annotation of 43BSD/contrib/icon/book/f/acker2.icn, revision 1.1

1.1     ! root        1: procedure acker(i,j)
        !             2:    local args, k
        !             3:    static ackermem
        !             4:    initial ackermem := table()
        !             5:    args := i || "," || j
        !             6:    if k := \ackermem[args] then return k
        !             7:    if i = 0 then return ackermem[args] := j + 1
        !             8:    if j = 0 then return ackermem[args] := acker(i - 1,1)
        !             9:    return ackermem[args] := acker(i - 1,acker(i,j - 1))
        !            10: end

unix.superglobalmegacorp.com

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