Double the distance between 0 and 1, and then shift those points left one unit 
on the number line.

      am2=: ((-&1) @ +:)
am2"1] 2 6 ?.@$ 2 _1 _1 _1 _1 1 _1
   _1 _1 _1  1 1 _1

Does that make sense?

                        ... peter

Brian Schott wrote:
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

(B=)


----------------------------------------------------------------------
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