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.
----- Original Message ----- From: "Simon Ampleman" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Friday, October 12, 2007 1:42 AM
Subject: Re: [Jprogramming] Confused


Or you can also alter EQ to execute like the first sentence.

EQ =: [:>./[:=<./
EQ w
1
----------------------------------------------------------------------
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/1063 - Release Date: 11/10/2007 9:11



----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to