(i.!3)A. i.3 0 1 2 0 2 1 1 0 2 1 2 0 2 0 1 2 1 0 Is perm the definition of A. ?
Linda -----Original Message----- From: programming-bounces@ .jsoftware.com [mailto:[email protected]] On Behalf Of Linda Alvord Sent: Thursday, May 23, 2013 4:06 AM To: [email protected] Subject: Re: [Jprogramming] Perm Mystery I tried to understand this: f=:',/(0,.1+y){"2 1\:"1=i.>:{:$y'(13 : ) f [: ,/ (0 ,. 1 + ]) {"2 1 [: \:"1 [: = [: i. [: >: [: {: $ But I don't know how to use it. Linda -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Linda Alvord Sent: Thursday, May 23, 2013 4:02 AM To: [email protected] Subject: [Jprogramming] Perm Mystery perm=: 3 : 0 z=. i.1 0 for. i.y do. z=.,/(0,.1+z){"2 1\:"1=i.>:{:$z end. ) perm 3 0 1 2 0 2 1 1 0 2 1 2 0 2 0 1 2 1 0 NB. for. T do. B end. i.3 0 1 2 How does this work? When is 0 1 2 true? How often does "B" get executed? Linda ---------------------------------------------------------------------- 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
