Same way as *./ applied to an empty list gives 1. That is, if no conditions
exist, all are true. As 1 is the neutral element for AND, it should be the
same for "all cows I own are black" :) By the way, they are all white, and
blue, and...
Moreover, one can argue that for an empty list, all its elements are
different, too.
----- Original Message -----
From: "Devon McCormick" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Friday, October 12, 2007 10:34 AM
Subject: Re: [Jprogramming] Confused
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
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.488 / Virus Database: 269.14.8/1064 - Release Date:
11/10/2007 15:09
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm