Hello Raul;

The definition still looks odd to me.  I can see the use of:

  ts =: 6!:2,7!.2

which will distribute arguments properly, but

    6!:2,7!.2&]

seems to parse as

   6!:2,(7!:2&])

which looks like it would give a domain error (and it does), and

   (6!:2,7!:2)&]

which also gives a domain error in the dyadic case.

Can you tell me what the URL is for Roger's comments on this in the forum archives?

Raul Miller wrote:
On 7/2/08, Randy MacDonald <[EMAIL PROTECTED]> wrote:
Is your definition of ts, which seems to ignore the left argument when used
dyadically, useful for some other purpose which I don't happen to see?

You give me too much credit -- that was Roger Hui's definition
of ts.

That said, that definition does not ignore the left argument to 6!:2
and according to http://www.jsoftware.com/help/dictionary/dx006.htm

   [x] 6!:2 y  Execute. Seconds to execute sentence y (mean of x times
   with default once).

I hope this makes sense.

(And, I asked this same question, several years ago, and Roger
was kind enough to answer me back then -- despite the answer
being quite easy to look up, in retrospect.)


--
------------------------------------------------------------------------
|\/| Randy A MacDonald       | APL: If you can say it, it's done.. (ram)
|/\| ramacd <at> nbnet.nb.ca |
|\ |                         | The only real problem with APL is that
BSc(Math) UNBF'83            | it is "still ahead of its time."
Sapere Aude                  |     - Morten Kromberg
Natural Born APL'er          |
-----------------------------------------------------(INTP)----{ gnat }-



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

Reply via email to