Hi there, Unfortunately, I was unable to get it working. >From what I gather, I'm using the wrong clojure.jar and or clojure- contrib.jar.
Could you tell me which version of theses files you are using? Anyway, I was wondering about the memoizing of the function surrounding-neighbors-seq. It's memoizing for every grid, which I guess is good if the application hits a cycle, but if it doesn't, it will unnecessarily keep function results for passed grids. I'm not sure about the memoizing cache behavior, but if we bet for non- repeating grids, I think it might be better to dynamically memoize for each grid only. This way, memoizing information for passed grids will be GCed. I'm thinking about something like this. Remove the global def: (def m-surrounding-neighbors-seq (memoize surrounding-neighbors-seq)) Modify the two following count-living-neighbors and get-living- neighbors-seq functions to let a memoized version once for each grid: See http://paste.lisp.org/display/90541 Using a let and passing the local memoized function to count-living- neighbors felt weird, but it felt better than doing a binding. I wonder which would be the idiomatic way to go. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en