Thank everyone for input. I think I understand it better now.
rank-0 verb is execution once using fill element to get a result, then the
actual result is i.0,$result
Roger Hui wrote:
Examples of rank-0 functions with different result shapes:
f0=: 3 : 'i.5'"0
f1=: 3 : 'i.3 7'"0
$ f0 i.0
0 5
$ f1 i.0
0 3 7
----- Original Message -----
From: "bill lam" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Tuesday, April 11, 2006 9:54 PM
Subject: Re: [Jprogramming] invoke rank 0 verb with 0-length vector
Miller, Raul D wrote:
> I believe he addressed this issue.
Re-read the quoted material, above, and especially note the sentence
which says "all other aspects ... including errors, are ignored".
Yes, I think so.
Is the execution of body of foo actually needed when it is rank 0 and its
argument is 0-length?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm