Annotation of 43BSD/contrib/icon/book/16/stree.icn, revision 1.1.1.1

1.1       root        1: procedure stree(ltree)
                      2:    local s
                      3:    if *ltree = 1 then return ltree[1]    # start with leaf
                      4:    s := ltree[1] || "("                          # append value
                      5:                                          # append stree
                      6:    every s ||:= stree(ltree[2 to *ltree]) || ","
                      7:    return s[1:-1] || ")"
                      8: end

unix.superglobalmegacorp.com

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