Hi Brian,
Your solution doesn't appear to make use of b at all. Given that, is there
any reason you couldn't do:
$((0;0) {:: }.@]) d
3 2 6
On Sun, Mar 24, 2019 at 4:36 PM Brian Schott <[email protected]> wrote:
> Henry,
>
> Since I must keep }.@] the workaround I have devised is as follows.
> Your explanation that the extra axis comes from the frame, helped a lot.
>
> $b([ >@{.@(,@:>)@] (}.@])) d
>
> 3 2 6
>
> On Sun, Mar 24, 2019 at 11:06 AM Henry Rich <[email protected]> wrote:
>
> > }. d is a singleton list, and its shape is the frame of > . If you know
> > you want only the second atom, use 1 { d.
> >
> > 1 {:: d is the fastest way to open the second box of d, and ((1;0) {::
> > d) the fastest way to do what you want here.
> >
> > --
> (B=)
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm