I haven't read this whole thread, so apologies if this has already been
covered, but many many moons ago I wrote a util to do this:
https://code.jsoftware.com/wiki/User:Dan_Bron/Snippets/DOOG
g=. *: ` -: `^
y=. 3 1 0
g Across y
9 0.5 1
It's more general than that, but Across was the original motivating need for
the script.
-Dan
On Thursday, May 2, 2019, 8:59:25 PM EDT, pietdion <[email protected]>
wrote:
Hopefully not an ignorant question.
Am looking for a simple (tacit, non complicated) construction (verb?
adverb? conjunction?) “c" that takes a gerund and applies the successive
verbs in the gerund to successive items.
A simple example is
g=. *: ` -: `^
y=. 3 1 0
g c y
9 0.5 1
What “c” achieves this for arbitrary gerunds g's and y’s?
I realise this can be done in a variety of explicit ways and with the
agenda construct. All I can come up with is intricate constructions.
Looking for something simple and direct. Seems to have a lot of uses.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm