I expect you'll get many of the same response. Your conjunction is
fine, however this particular case is so frequent there's a built in
conjunction. Read "but first",
x f&g y
or
x f&:g y
the difference being rank. Add but first square:
4 +&: *: 5
41
On 12/03/2015 10:05 PM, [email protected] wrote:
Date: Fri, 4 Dec 2015 03:05:50 +0000
From: Lippu Esa<[email protected]>
To:"[email protected]" <[email protected]>
Subject: [Jprogramming] My first J conjuction
Message-ID: <4C1D3F3685BCAE4699AA47F9961903BA33126CC3@VDOMES02>
Content-Type: text/plain; charset="us-ascii"
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