To reverse the processing order of F.. use F.:
If you want to test F.. (or F.:) you might try this:
U=: {{'U ',":y}}
V=: {{deb '''',(":x),''' V ',":y}}
0 0 0 U F..V ];._2 data
If that does not work, then something is wrong with your instance of J.
If for some reason, you do not have deb defined, it's #~ (+. (1: |. (>
</\)))@(' '&~:)
(Note that the () in the output should probably have been quotes
instead of parenthesis.)
(Also, I suspect I know how to implement what you had intended to
implement (without the use of a fold), but I think you would prefer it
if I let you work that out.)
FYI,
--
Raul
On Sat, Dec 4, 2021 at 6:22 PM Brian Schott <[email protected]> wrote:
>
> Yes, that `~` won't work with (monadic) `".` . I was thinking in terms of
> reversing something in the Fold, but that won't do it, for sure.
>
> The error message looks more like fold.ijs needs to be present and maybe
> some sort of pacman request for Fold is required. But I don't know how to
> do pacman on iOS. I'll research using pacman for iOS a little more.
>
> I guess I cannot process the "data" like I am trying to with Fold. Each
> item of "data" is a verb followed by a noun, and I was dreaming that the
> verb part could be parsed as the "V" in Fold, but that does not make much
> sense now. I need something more, but I can't think of what.
>
> On Sat, Dec 4, 2021 at 6:12 PM Raul Miller <[email protected]> wrote:
>
> > 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
> >
> >
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm