Oh, I see, using } isn't a requirement. You just want the result. Then
using { would be simpler:

           v  =:  ({~ (;&.>i.@#))~

           0 1 1 v i. 2 3 2 
         0  1
         8  9
        10 11

-Dan

----- Original Message ---------------

Subject: Re: [Jprogramming] speaking of amend...
   From: Dan Bron <[email protected]>
   Date: Fri, 11 Jul 2014 21:52:35 -0400
     To: [email protected]

Would  (#"0~ #)&>/`(1 {:: ])}@:,&<  do?

           oneOrTother =: (#"0~ #)&>/`(1 {:: ])}@:,&<

           0 1 1 oneOrTother  i. 2 3 2
         0  1
         8  9
        10 11

-Dan

----- Original Message ---------------

Subject: [Jprogramming] speaking of amend...
   From: "'Pascal Jasmin' via Programming" <[email protected]>
   Date: Fri, 11 Jul 2014 17:56:49 -0700
     To: Programming forum <[email protected]>

what verb v (or I guess adverb is ok) could I use to get

0 1 1 v i. 2 3 2

0  1
8  9
10 11


    i.2 3 2 
 0  1 
 2  3 
 4  5 
 6  7 
 8  9 
10 11
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
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