"My way" would even work in Algebra I. Linda
-----Original Message----- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of David Ward Lambert Sent: Monday, December 10, 2012 7:58 PM To: programming Subject: Re: [Jprogramming] convert 0,1 coding to _1,1 <:@:+: 0 1 _1 1 (_1 + +:)0 1 NB. for Linda _1 1 > Date: Mon, 10 Dec 2012 19:13:05 -0500 (EST) > From: Brian Schott <schott.br...@gmail.com> > To: programm...@jsoftware.com > Subject: [Jprogramming] convert 0,1 coding to _1,1 > Message-ID: <alpine.OSX.2.02.1212101905510.33557@server.local> > Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII > > Is there a better way than the verb `am` to do the following? > > am =:_1& (I.@:-.@]}) > am"1] 2 6 ?.@$ 2 > _1 _1 _1 _1 1 _1 > _1 _1 _1 1 1 _1 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm