I wrote: > If you want to be able to calculate q on-the-fly, using tacit code, > here's a little helper utility: > ... > It works on the same principles as x q} y , using gerund} to permit > the calculation of q from x and/or y at runtime. It's a bit convoluted > because the definition of gerund} doesn't readily support accessing > the monadic semantics of m} in a dyadic context or vice-versa.
In real-life examples, where x and y have the same shape, one is often derived from the other. If that's true in your case, you could likely out the middleman (mergeMask) and just use f`g`h} directly. Doing so would probably save time and effort and reduce complexity compared to, e.g. (u mergeMask~ x_calculator) . -Dan ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
