[Jprogramming] convert 0,1 coding to _1,1
Linda Alvord
lindaalvord at verizon.net
Tue Dec 11 04:21:16 UTC 2012
"My way" would even work in Algebra I.
Linda
-----Original Message-----
From: programming-bounces at forums.jsoftware.com
[mailto:programming-bounces at 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.brian at gmail.com>
> To: programming at jsoftware.com
> Subject: [Jprogramming] convert 0,1 coding to _1,1
> Message-ID: <alpine.OSX.2.02.1212101905510.33557 at 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
More information about the Programming
mailing list