Raul,

Thanks very much. That seems to overcome the main problem,
but for that example using n0 your result keeps the initial N (and
also does not change it to a:) before eliminating a:'s .

That seems odd.

On Fri, Dec 15, 2017 at 6:52 PM, Raul Miller <[email protected]> wrote:

> Like this?
>
>    ({.@ni n0`n1`n2@.({:@ni) ]) ;:2}.ex1
> ┌─┬──┬──┬──┬──┬──┬──┐
> │N│NW│NW│NE│NE│SW│SW│
> └─┴──┴──┴──┴──┴──┴──┘
>
> Or, if you do not like running ni twice:
>
>     (({.@] n0 [)`({.@] n1 [)`({.@] n2 [)@.({:@]) ni) ;:2}.ex1
> ┌─┬──┬──┬──┬──┬──┬──┐
> │N│NW│NW│NE│NE│SW│SW│
> └─┴──┴──┴──┴──┴──┴──┘
>
> I hope this helps,
>
> --
> Raul
>
>
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to