Maybe already answered elsewhere and/or an ignorant question.
But can’t figure it out.
Is there a (tacit) way to apply an adverb to each of a list of verbs?
--
For information about J forums see http://www.jsoftware.com/forums.ht
I’m coming to grips with the power of programming in adverbs.
At the risk of boring many of you with my elementary questions, I am asking
advice on the tacit equivalent of
ju=: 1 : 'u/ % #’
This is a made up example containing the gist of a more complicated situation
I’m trying to program.
H
Since
2 +/\ i.5
1 3 5 7
Further
ad=.1 : 'u/\'
2 + ad i.5
1 3 5 7
However
adv=.1 : 'x u/\ y'
2 + adv i.5
|domain error
Why? I suspect it is something to do with bracketing and/or ‘x’ being passed
to u.
+ a3t i. 8
> 5.2915NB. Tacit "a3t" has the same result as explicit "at"
>
> Cheers, bob
>
>> On Jul 30, 2018, at 1:32 PM, Piet Google wrote:
>>
>> t=: 1 : '%:@:(u/) y'
>
Is there a tacit equivalent of the following
t=: 1 : '%:@:(u/) y'
Help much appreciated.
--
For information about J forums see http://www.jsoftware.com/forums.htm