[Jprogramming] A phrase for amendment

Sherlock, Ric R.G.Sherlock at massey.ac.nz
Wed Nov 24 07:07:00 HKT 2010


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: programming-bounces at jsoftware.com [mailto:programming-
> bounces at jsoftware.com] 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 <paston.cooper at gmail.com>
> Sender: programming-bounces at jsoftware.com
> Date: Tue, 23 Nov 2010 22:05:21
> To: Programming forum<programming at jsoftware.com>
> Reply-To: Programming forum <programming at jsoftware.com>
> 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


More information about the Programming mailing list