After waking up a bit, I agree that just entering

   x ([ u [ v [ w ... ] ) y

or

   x u x v x w ... y

is the best approach for this.

And, by best, I mean:  most direct, most concise, easiest to understand.

Thanks,

-- 
Raul

On Tue, Jul 12, 2016 at 10:00 AM, 'Pascal Jasmin' via Programming
<[email protected]> wrote:
> The simplest and most general approach,
>
> 7 ([ + [ - *) 5
> _21
>
>
> as an conjunction dyadicCompose
>
>  dyC =: 2 : '[ u v'
>
>  7 + dyC - dyC * 5
> _21
>
> ----- Original Message -----
> From: Rob Hodgkinson <[email protected]>
> To: [email protected]
> Sent: Tuesday, July 12, 2016 9:12 AM
> Subject: Re: [Jprogramming] Question about dyadic verb composition
>
> Also perhaps a gerund reduction approach, but you would need to replicate the 
> arguments …
>
>    7 ([ + [ - [ * ]) 5
> _21
>
>
>    +`-`*/7 7 7 5
> _21
>
> You could wrap this in a function also to do the replication based on $gerund.
>
>    foo
> 4 : ' r=:x/(($x),1)#y'
>
>    (+`-`*) foo 7 5
> _21
>
> Regards Rob
>
>
>> On 12 Jul 2016, at 11:04 PM, Raul Miller <[email protected]> wrote:
>>
>> No, but you can make one.
>>
>> For example:
>>
>>   x(((<<<_2){{.,@,.}.)[`u`v`w`...`])y
>>
>> I hope this helps.
>>
>> --
>> Raul
>>
>>
>> On Tue, Jul 12, 2016 at 8:38 AM, dahn oak <[email protected]> wrote:
>>> Hello, is there any language cunstruction that is equivalent to:
>>>   x u x v x w ... y
>>> where x and y are the arguments of the construction and u,v,w,... is a 
>>> sequence
>>> of dyadic verbs?
>>>
>>> I just don't want to duplicate my x argument many times. Specifically, I 
>>> want
>>> to do something like 10,~10,.~10,10,.y where y is a scalar matrix to make a
>>> "border" for it (number 10).
>>>
>>> dahn oak - [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
>
> ----------------------------------------------------------------------
> 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

Reply via email to