the difference between leaf (L:0) and each is that each implies a "_1 on
unboxed items (actually for boxed items too).
this also works
('+/~';'*/~') apply &:>"0 1 ] 1 0
('+/~';'*/~') apply &.>"0 1 < 1 0
________________________________
From: Brian Schott <[email protected]>
To: Programming forum <[email protected]>
Sent: Wednesday, July 26, 2017 9:02 AM
Subject: Re: [Jprogramming] apply for table
Yes, but I never would have found that because I don't believe I every use
leaf. Apparently leaf produces a boxed result or something else is coming
into play because the each (&.>) is no longer required. Or is the leaf
being applied to both the y (1 0) and the x ('+/~';'*/~') ?
Thanks,
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm