So, looking further at this, I ran your expression (for test=: ...) against my aoc dataset (then translated it to lower case and parsed it using ;: so that it's in the format that my routines expected).
The original data gave me a path with 423 ne and 241 se. The result of your test expression gave me a path with 144 n and 664 ne which meant, I thought, that you have at least one bad substitution somewhere. But then I ran the same procedure again against the same data set and got a completely different result (which also matched with my answer). So I don't know what's going on. Good luck, -- Raul On Sat, Dec 16, 2017 at 3:07 PM, Brian Schott <[email protected]> wrote: > I don' think 'W' can ever occur by itself, only SW and NW. > > On Sat, Dec 16, 2017 at 3:04 PM, Raul Miller <[email protected]> wrote: > >> How is it supposed to work for a sequence like 'W N SE'? >> >> Thanks, >> >> -- >> Raul >> >> >> >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
