dyadic & does this already

   4 +&*: 5
41


----- Original Message -----
From: Lippu Esa <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Thursday, December 3, 2015 10:05 PM
Subject: [Jprogramming] My first J conjuction

Hello everybody,

I realized with some shame that I haven't written a single J conjunction - 
ever. Some adverbs, yes, but they too are newish.

I have a recurring need for sentences like (f x) g f y where verb f is applied 
to nouns x and y and dyadic verb g is then applied to the two results.

and was thinking of something like x f c g y with c being a conjuction. This is 
what was the result:

fxgfy=: 2 : 0
:
(v x) u v y
)

4 + fxgfy *: 5 NB. very simple example

   4 + fxgfy *: 5
41  

Is there a more natural J way to do this? What would be a good name for this 
type of conjunction or operation?

Esa

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to