On Tue, Sep 28, 2010 at 4:56 PM, Raul Miller <rauldmil...@gmail.com> wrote: > On Tue, Sep 28, 2010 at 4:50 PM, Justin Paston-Cooper > <paston.coo...@gmail.com> wrote: >> Is there an abbreviation for the following fork? I don't want the >> computation of <<x b y>> to happen twice. >> >> ([ a b) c (] d b) > > When you need to intermix three (or more) values in J, > you have several options: > > [1] Compose some (or all) of them into a list > [2] Use an explicit definition > [3] recompute some of them > > Each has its own advantages and disadvantages.
One other approach (and note that these may overlap) involves the use of a constant value (which can be incorporated into a definition). FYI, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm