What you say is like
(}. ;~ whatshappeningalready@{.)@u
The problem is:
whatshappeningalready uses [ and ] of the enclosing verb
(ex- or implicitly)
I could do
(}. ;~ wha2)@([;];u)
for some value of wha2 (an adjusted way of whatshappeningalready)
but I thought maybe there’s a more elegant way of achieving this.
Am 02.06.20 um 11:39 schrieb Raul Miller:
Probably?
But you don't need a gerund, just accessors
Basically, you'll do something like (expr)@:u or ([: expr u), and in
the context of expr, 0&{:: gets the contents of the first box and
1&{:: gets the contents of the second box.
You may also want to do something like (expr)@:(+each&(0;0))@:u to
enforce a structure on the result of u.
That said, once I learned this technique, I discarded it -- I feel
that explicit local names are a better choice.
Still, this might help?
--
----------------------
mail written using NEO
neo-layout.org
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm