> > The key thing here is that I'm going to be collecting millions of > results, and I'll run out of memory if I just retain them all and > count at the end. But I'm not sure how to modify structures in J. >
Are you sure you will run out of memory? I can hold a billion ints on my machine and use 7.8gb of memory. Here's 100 million random numbers between 1 and 100 a =. (?. 1e8 # 100) and a frequency table of the results: (~. ,. #/.~) a ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
