Build is nice! I could tell it would be possible but I just didn't know how to pull it off. Maybe next time!
Thanks, Linda -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Joe Bogner Sent: Tuesday, June 03, 2014 12:49 PM To: [email protected] Subject: Re: [Jprogramming] Turtle graphics, Gaussian integers and Mechanical action... > > > Would it be possible to write a recursive function that would get your list > directly as numbers. > > Not recursive, but you could do this: build =: 3 : 0 A=:B,A B=:A,B ) ((build^:3 '') [ 'A B'=:1 `0)-:(0 1 0 0 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0) 1 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
