[Jprogramming] AoC Day 11 - something is wrong

Brian Schott schott.brian at gmail.com
Sat Dec 16 01:06:51 UTC 2017


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 <rauldmiller at gmail.com> wrote:

> Like this?
>
>    ({. at ni n0`n1`n2 at .({:@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
>
>
>
>


More information about the Programming mailing list