I still "cheat" by using "13 :" a lot, e.g.

   13 : '*/x-i.y'
[: */ [ - [: i. ]
   14 ([: */ [ - [: i. ]) 3
2184

which gives the same answer but isn't as nice looking as "*/@(-i.)".

For further thought, why is this OK

   14 */@(-i.) 3 2
1680 1287

but I get this error here?

   14 */@(-i.) i. 14
|limit error
|   14    */@(-i.)i.14

(and how do you fix this so it works as expected?)

On Thu, Feb 18, 2010 at 4:44 PM, Alex Gian <[email protected]>wrote:

> On Thu, 2010-02-18 at 19:47 +0000, Björn Helgason wrote:
> > x u...@v y ↔ u x v y
>
> Thanks Björn, that's pretty much exactly what I was looking for!
>
> Thanks also to Ric and Raul for elucidating the (-i.) hook, obvious when
> you know, but not so obvious to someone used to other programming
> contexts, especially with a deceptively simple-looking structure like
> that.
>
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to