I had some fun learning modifier trains recently (might post about my
experiences later) and I came up with this adverb, based on Brian's second
approach (no clue how to name it as I didn't bother understanding its
purpose):

   adv=: ]: (]`(*@)`(,:([.].))})
   3&| adv
]`(*@(3&|))`(,: 3&|)}
   3&| adv i. 10
0 1 2 3 1 2 6 1 2 9

Jan-Pieter

On Mon, 30 May 2022, 05:21 Brian Schott, <schott.br...@gmail.com> wrote:

> Very nice. Thank you.
>
> On Sun, May 29, 2022 at 6:08 PM Elijah Stone <elro...@elronnd.net> wrote:
>
> > I would use a fork, and 'bind' the left argument to the result of f.
> > There is a difficulty, because you can't compose adverbs with verbs.
> > Perhaps something like this:
> >
> >    c=. (*@] {{x}y}} ,:) f
> >    c i.10
> > 0 1 2 3 1 2 6 1 2 9
> >
> > You can get rid of the explicit definition using boxes, if you really
> care
> > to, but I would not.
> >
> >  -E
> >
> >
> ----------------------------------------------------------------------
> 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