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

1.1     ! root        1: procedure ackertrace(i,j)
        !             2:    static level
        !             3:    local result
        !             4:    initial level := 0
        !             5:    write(repl("x",level +:= 1))
        !             6:    if i = 0 then result := j + 1
        !             7:    else if j = 0 then result := ackertrace(i - 1,1)
        !             8:    else result := ackertrace(i - 1,ackertrace(i,j - 1))
        !             9:    level -:= 1
        !            10:    return result
        !            11: end

unix.superglobalmegacorp.com

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