Because I struggle to define tacit adverbs like Dan's I would probably just 
define the verb directly including the monad:

      3 4 5  +:@{`[`]} i.10
0 1 2 6 8 10 6 7 8 9
     (1 2;2 2) *:@{`[`]} i.3 4
0 1   2  3
4 5  36  7
8 9 100 11

Note this is the result of +:aPhrase
   +:aPhrase
+:@{`[`]} 

Dan if you have a tips on how you went about composing your adverb I'd be 
interested.

> -----Original Message-----
> From: [email protected] [mailto:programming-
> [email protected]] On Behalf Of Dan Bron
> Sent: Wednesday, 24 November 2010 11:18
> To: J Programming
> Subject: Re: [Jprogramming] A phrase for amendment
> 
> aPhrase =: (@{) (`[) (`]) }
> 
> 3 4 5 +:aPhrase i. 10
> 
> 
> (Off the cuff & untested.)
> 
> -Dan
> 
> 
> Please excuse typos; composed on a handheld device.
> 
> -----Original Message-----
> From: Justin Paston-Cooper <[email protected]>
> Sender: [email protected]
> Date: Tue, 23 Nov 2010 22:05:21
> To: Programming forum<[email protected]>
> Reply-To: Programming forum <[email protected]>
> Subject: [Jprogramming] A phrase for amendment
> 
> What is a common phrase for replacing element n in an array a by
> itself applied to a monad 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

Reply via email to