On Fri, 24 Dec 2021, Raul Miller wrote:
It's probably possible to make R fully tacit, but (because u is buried
so deeply), that approach would involve a lot of "busy work".
The problem is not that u is buried deeply, per se; it's that it's used in
the middle tine of a fork. The only way to express that is with AAV, so
you need to use (]: A V) and then bind the left argument. That is a
misdirection.
(Or you can do ((u[.) A V) and bind a dummy left argument; that may be
slightly clearer if u is large, but amounts to the same thing.)
(Or you can cheat and use `.)
I agree the explicit rendition is probably clearer. For completeness's sake,
however, here is the inner part: ([:(]: ((-:@#(]: ]: +/)) = ]) {"1)) # ]
(The remainder should be straightforward to read and write, as VCA and ACV
do exactly what you want.)
-E
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm