Exactly: "(extra parentheses and spaces for clarity)"
On Tue, Jun 13, 2023 at 2:27 PM Raul Miller <[email protected]> wrote:
> [I thought I had sent this yesterday, but today I find it in draft status]
>
> Note that you can eliminate some of the parenthesis here, and some of
> the quotation marks (though this does place a burden on the reader's
> understanding of j syntax):
>
> ({{y`:6 nc`''}} ^: 9 +:`'') (`:6) 7
> 23
>
> or
>
> ({{y`:6 nc`''}} ^: 9 +:`'') `:6 ]7
> 23
>
> The final parentheses are essential (to force early verb evaluation).
>
>
> --
> Raul
>
> On Mon, Jun 12, 2023 at 7:01 PM Jose Mario Quintana
> <[email protected]> wrote:
> >
> > (3 : '((y`:6) nc)`''''' ^: 9 +: (`'')) (`:6) 7
> > 23
> >
> >
> >
> > On Mon, Jun 12, 2023 at 6:57 PM Jose Mario Quintana <
> > [email protected]> wrote:
> >
> > > Concisely,
> > >
> > > ncver=. 3 : '((y`:6) nc)`'''''
> > > (ncver ^: 9 +: (`'')) (`:6) 7
> > > 23
> > >
> > >
> > >
> > >
> > > On Mon, Jun 12, 2023 at 6:46 PM Jose Mario Quintana <
> > > [email protected]> wrote:
> > >
> > >> An alternative way is verbing, so to speak, the (nc) adverb taking and
> > >> producing instead the gerunds corresponding to the verbs, powering the
> > >> verbed adverb (ncver) and converting the resulting gerund back to the
> > >> desired verb (extra parentheses and spaces for clarity),
> > >>
> > >> ncver=. 3 : 0
> > >> u=. (y`:6)
> > >> v=. u nc
> > >> v (`'')
> > >> )
> > >>
> > >> (ncver ^: 2 +: (`'')) (`:6) 7
> > >> 16
> > >> (ncver ^: 9 +: (`'')) (`:6) 7
> > >> 23
> > >>
> > >> PS. The previous generation of interpreters allowed one (illegally,
> of
> > >> course) to operate directly on the entities without having to go back
> > >> and forth. For example, one can just write,
> > >>
> > >> +: ((Ver 'nc')^:9 adv) 7
> > >> 23
> > >>
> > >> using the suitable utilities (Ver) for verbing and (adv) for
> adverbing.
> > >>
> > >>
> > >>
> > >> On Mon, Jun 12, 2023 at 6:12 AM Martin Kreuzer <[email protected]>
> > >> wrote:
> > >>
> > >>> Dear all -
> > >>>
> > >>> Having used Fixed Power (u^:n y) before, I noticed that it works on
> > >>> the verb-adverb compound to its left.
> > >>>
> > >>> Let's have a simple, silly example:
> > >>>
> > >>> nc=. 1 : '[: >: u' NB. defining an adverb 'increase'
> > >>>
> > >>> +: i. nc 7 NB. which works fine
> > >>> 2 4 6 8 10 12 14
> > >>>
> > >>> Using Fixed Power like
> > >>>
> > >>> +: nc ^:1 (7)
> > >>> 15
> > >>> +: nc ^:2 (7)
> > >>> 31
> > >>>
> > >>> I do get the expected results (compound is executed once, twice).
> > >>>
> > >>> Here we have a verb, followed by two adverbs (if I understand
> correctly).
> > >>>
> > >>> What I have initially been looking for however, is how to apply the
> > >>> *same* adverb repeatedly, like
> > >>>
> > >>> +: nc nc (7)
> > >>> 16
> > >>>
> > >>> while having the adverb part "nc nc" somehow abbreviated.
> > >>>
> > >>> What would be a (or the) way to phrase that ?
> > >>>
> > >>> Thanks.
> > >>> -M
> > >>>
> > >>>
> ----------------------------------------------------------------------
> > >>> For information about J forums see
> http://www.jsoftware.com/forums.htm
> > >>>
> > >>
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm