Welcome to the 'well that's embarrassing' club. We have all been there.

For the 3 arguments you would like to use, I generally use one of two 
techniques.

For explicit

area=: 3 : 0    NB. Area of rectangle - y is width and height
'w h'=. y          NB. multiple assignment to w and h
w*h
)

or tacit

areat=: (0{ ]) * 1{ ]  NB. you control the way you handle the multiple argument 
string

These could be defined dyadically, but the technique becomes necessary when you 
have three arguments and only monadic and dyadic verbs.

If I have missed with this advice, I am sure I will do my own 'well that's 
embarrassing' moment. In this group it feels more like a teachable moment. :)

Cheers, bob

On Feb 26, 2014, at 7:34 AM, Jon Hough <[email protected]> wrote:

> Well that's embarrassing. I should have read the definition more carefully.
> 
>> Date: Wed, 26 Feb 2014 08:31:45 -0700
>> From: [email protected]
>> To: [email protected]
>> Subject: Re: [Jprogramming] Combinatorial Maths with J
>> 
>>   ((!3)*!(7-3))%~!7
>> 
>> 35
>> 
>>   3!7
>> 
>> 35
>> 
>> 
>> On Wed, Feb 26, 2014 at 8:25 AM, Jon Hough <[email protected]> wrote:
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>                                         
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

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

Reply via email to