we have a winner :) dyadic /. is one of those J functions that are very useful but esoterically explained, and hard to incorporate into our repertoire. \ requires surprisingly large amount of practice to understand well too.
----- Original Message ---- From: Ewart Shaw <[EMAIL PROTECTED]> To: Programming forum <[email protected]> Sent: Thursday, November 16, 2006 11:09:25 AM Subject: RE: [Jprogramming] Re: Coding Problem I may have misunderstood the problem, or missed the solution, but doesn't the following do what's required? cutup=: <.@(* (i. % ])@#) </. ] 4 cutup i. 11 +-----+-----+-----+----+ |0 1 2|3 4 5|6 7 8|9 10| +-----+-----+-----+----+ J.E.H.Shaw [Ewart Shaw] [EMAIL PROTECTED] TEL: +44 2476 523069 Department of Statistics, University of Warwick, Coventry CV4 7AL, UK http://www.warwick.ac.uk/statsdept http://www.ewartshaw.co.uk Will read usenet posts up to the first insult (which may be in the Subject) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
