tcrRaul }: i:4
1 0 0
1 0 1
1 1 0
1 1 1
0 0 0
0 0 1
0 1 0
0 1 1
tcrRandy }: i:4
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
tcrRaul
{.@#:@(,: (2 * >./@,))
tcrRandy
(0 > ]) ,"0 1 #:
On 12/29/2011 8:41 AM, Randy MacDonald wrote:
> On 12/8/2011 4:39 PM, Raul Miller wrote:
>> {.@#:@(,: 2 *>./@,)i:2
> ((0>]),"0 1#:) i:2 NB. seems to work just as well, and more obviously
> handles the sign bit.
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm