On Wed, Oct 22, 2008 at 9:31 AM, Alex Rufon <[EMAIL PROTECTED]> wrote: > Most of the times its frustrating doing tacit programming since I know > how to do it if I break it down into its individual parts. Its when > assembling them into one line and trying to apply the code into an array > is where I always gets bewildered.
One trick for assembling the small pieces is nested forks -- you can achieve an effect similar to temporary variables by computing a value and making it available to a fork. Another approach involves repeating simple calculations. (Hypothetically speaking, if a calculation is no more complicated than a variable table lookup you are not gaining anything if you replace the calculation with a variable reference.) And, of course, there's the old standby: data structures. This particular problem did not have anything to gain from new data structures, but if you get stuck just trying a different angle can often get you unstuck. And 13 : can also be suggestive, when you give it something that it can digest. Or, sometimes, I get smart and take a step back and ask myself what problem I was really trying to solve... -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
