-: is lenient when comparing emties. eg,
   ($0)-:(0$<'anything')
1
   10{.$0
0 0 0 0 0 0 0 0 0 0
   10{.(0$<'anything')
+++++++++++
|||||||||||
+++++++++++

Murray Eisenberg wrote:
But:

  ($0)-:(0$0)
1

Mark D. Niemiec wrote:
"Henry Rich" <[EMAIL PROTECTED]> wrote:
$0 is the shape of a scalar: an empty numeric list.
So it is the same as 0$0 .

In DoJ: The ace (a unit, from Latin as) is denoted by a: . It is the boxed empty list <$0 .

Is it a typo? Look like should be <0$0 instead.

Actually, they are equal, but not identical.
0$0 is boolean, but $0 is integer:
   t =: 3!:0
   t 0
1
   t 0$0
1
   t $0
4
   t >a:
1

-- Mark D. Niemiec <[EMAIL PROTECTED]>

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




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

Reply via email to