[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Java Live | January 9, 2001



Oops - the last example in my posting just now was correct, but should have
been shortened by removal of redundant words:

  INT FUNCTION sum (VAL []INT A) IS
    [[A[0],
      A[0] + A[1],
      A[0] + (A[1] + A[2]),
      (A[0] + A[1]) + (A[2] + A[3]),
      (A[0] + A[1]) + (A[2] + (A[3] + A[4])),
      (A[0] + (A[1] + A[2])) + (A[3] + (A[4] + A[5])),
      (A[0] + (A[1] + A[2])) + ((A[3] + A[4]) + (A[5] + A[6])),
      ((A[0] + A[1]) + (A[2] + A[3])) + ((A[4] + A[5]) + (A[6] + A[7]))]
     [(SIZE A) - 1],
     sum ([A FOR (SIZE A) >> 1]) + sum ([A FROM (SIZE A) >> 1])]
    [INT ((SIZE A) > 8)]:

I think that's OK now!

Peter.