Pascal Jasmin wrote: > Caching only a single result would provide 99%+ > of the usefulness, and minimize the length of > time data need held in memory cached
You could approximate this by defining: a=:3 :'A=:y' then a i. 3 0 1 2 a +/~A 0 1 2 1 2 3 2 3 4 a +/,A 18 If you wanted to archive further results you could extend a. For example A=:B=:C=:D=:E=:i.0 0 a=:3 :'A=:y[B=:A[C=:B[D=:C[E=:D' (Or, you could maintain a boxed list of results. Or, you could use 3!:1 and write the results to file. Or, ...) -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
