On Nov 19, 2007 11:39 PM, metaperl.j <[EMAIL PROTECTED]> wrote:
> But then we need to disrupt this smooth flow:
>
> empty-list - rank 1, shape: 0
>
> All other shapes are lists. But the empty list has an integer as its shape.

There is no exception here: the shape of an empty list is a list of one integer,
just like the shape of any other rank 1 list.

In other words, to be completely precise its shape is ,0 (since all shapes
are lists).  However, when using reshape (dyadic $), a rank 0 left argument
is automatically ravelled, so in practical terms it's not a very big issue.

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

Reply via email to