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


--
Murray Eisenberg                     [EMAIL PROTECTED]
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to