[Jprogramming] My first J conjuction

Lippu Esa Esa.Lippu at varma.fi
Fri Dec 4 03:05:50 UTC 2015


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



More information about the Programming mailing list