mijj <[email protected]> wrote:

> .. but is there any benefit to storing the actual atomic expression
> rather than the names? .. probably not.

If all the verbs are either primitives or named verbs, it's fine.
But if you want to use anything tacit, such as +/ u"0 (+/%#) u@v etc.
you need another mechanism.

   _1 (*:@:{.)`(+:@:{.)`(-:@:{.)\ 2 3 4
4 6 2

This actually uses real gerunds. Unfortunately, _1 g\y calls each item
of g with a 1-item list of the corresponding item of y, so the spurious
length-1 axis must first be removed via {. making this a bit uglier.
It was cleaner in J 5 which permitted the undocumented g@:v: *.`+:`-:@:{.

-- Mark D. Niemiec <[email protected]>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to