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

1.1       root        1: procedure eq(x,y)
                      2:    local i
                      3:    if x === y then return y    # succeed if identical
                      4:    if type(x) == type(y) == "list" then {
                      5:       if *x ~= *y then fail    # check sizes
                      6:       every i := 1 to *x do    # check subtrees
                      7:          if not eq(x[i],y[i]) then fail
                      8:       return y
                      9:      }
                     10: end

unix.superglobalmegacorp.com

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