I get a domain error when I try your code, not a nonce error.

Looking closer at it, I can't quite figure out how your approach is
supposed to work.

Dyadic ". parses numbers (and the v argument to F.. is used dyadically
to combine items of y (and for Dyadic F... to combine with the value
of x)). It looks like your definitions expect to be doing something
different.

FYI,

-- 
Raul

On Sat, Dec 4, 2021 at 5:18 PM Brian Schott <[email protected]> wrote:
>
> I am working on advent of code day 2 part 2 and I have the following error.
> I am very new to the idea of using Fold so I don’t know whether this error
> is due to Fold not being implemented in the iOS version 9 or whether — the
> more likely situation — I am using Fold incorrectly.
>
> [SPOILER] below is code that you may not want to see.
>
>     data =. 0 :0
> forward 5
> down 5
> forward 8
> up 3
> down 8
> forward 2
> )
>    data
> forward 5
> down 5
> forward 8
> up 3
> down 8
> forward 2
>
>    0 0 0 [ F.. ".~ ];._2 data
> not found:
> /private/var/mobile/Containers/Data/Application/B6ABA026-7944-4523-A908-AE8C3E7C96F0/Documents/j/addons/dev/fold/foldr.ijs
> |nonce error
> |   0 0 0[    F..".~];._2 data
>
>
>
>
> --
> (B=) <-----my sig
> Brian Schott
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to