PackRat wrote: > I wasn't sure which forum was the best for this kind of APL-to-J > programming question, so I thought I'd try it here. If that's not > correct, please let me know, so that I can submit any future questions > along this line to the appropriate forum.
Your question is on programming in J, so the programming forum is correct. > Though by no > means being anywhere near very knowledgeable, I've been able to look at > both J and APL code and, in most cases, to understand what was going on > and, with APL code, to successfully begin translating to J versions. > (I've even been able to note on occasion that J had a better/shorter > way to do something than the APL code did.) In general, J code is shorter or the same as APL. However, you might be doing a literal translation, replacing each APL function with its rough J equivalent. This will work, but usually requires extra code to coerce the J primitives into behaving like APL - almost inevitably, the result will be more verbose than the original. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
