On 2007.10.31 13:35:47, you,
 the extraordinary Brian Schott, emitted:

> 
> Dan,
> 
>       Thank you very much for your helpful reply. I don't
> think I asked my question very well, because I was most
> surprised by the first example's result because it was not
> an error and because the result was an empty. Does that
> result surprise you/others?

Consider:

  ''+1

   ($'');($1);$''+1
+-++-+
|0||0|
+-++-+
   ''+,1
|length error
|   ''    +,1
   v=: i.3
   ($v);($1);($v+1);v+1
+-++-+-----+
|3||3|1 2 3|
+-++-+-----+
   v+,1
|length error
|   v    +,1

One's tempted to refer to the promiscuity of scalars,
but I guess one should rather say that it's easy to
tack a frame onto an empty shape. Or: A rank splits
an argument shape into the frame and the cell shape (KWH, '95)
and it's easy to split anything into (vector and i.0).


-- 
Nollaig MacKenzie
http://www.amhuinnsuidhe.net
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to