If you want to consider an empty list to have all elements equal, feel free to write your test that way. Maybe at night all cows are black.
I would argue for the correctness of the J interpretation: an empty list has no members, so how can they all be equal? There's no basis for comparison. On 10/12/07, Ricardo Forno <[EMAIL PROTECTED]> wrote: > > Thanks to all. > Now I see things more clearly. > Actually, my question was related to this Phrase, section test, 4C: > m11=: >./=<./ NB. Are atoms of numerical list y equal? > This works for lists having not null length. > However, for a null list, the result is 0, indicating that not all the > numbers were equal. > The question, then, boils to: is this last result right? I understand that > minus infinite is not equal to plus infinite; this is not the problem. > What I think is that there sholud be a simple phrase that, applied to a > null > lists, says all its elements are equal, because not two of them are > different. > Thanks. > ... -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
