It's been ages that I was looking for applying different verbs to different
items, but this is the solution.
Thanks for that!


R.E. Boss


> -----Oorspronkelijk bericht-----
> Van: [email protected] [mailto:programming-
> [email protected]] Namens Mark Niemiec
> Verzonden: woensdag 17 augustus 2011 20:14
> Aan: J Programming Forum
> Onderwerp: Re: [Jprogramming] Several questions about j
> 
> mijj <[email protected]> wrote:
> 
> > .. but is there any benefit to storing the actual atomic expression
> > rather than the names? .. probably not.
> 
> If all the verbs are either primitives or named verbs, it's fine.
> But if you want to use anything tacit, such as +/ u"0 (+/%#) u@v etc.
> you need another mechanism.
> 
>    _1 (*:@:{.)`(+:@:{.)`(-:@:{.)\ 2 3 4
> 4 6 2
> 
> This actually uses real gerunds. Unfortunately, _1 g\y calls each item of
g with
> a 1-item list of the corresponding item of y, so the spurious
> length-1 axis must first be removed via {. making this a bit uglier.
> It was cleaner in J 5 which permitted the undocumented g@:v: *.`+:`-:@:{.
> 
> -- Mark D. Niemiec <[email protected]>
> ----------------------------------------------------------------------
> 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