Re: cells questions

2009-07-20 Thread kyle smith
> It looks to me like you are blowing the stack. You may want to rethink > your commute-cells function so that it either uses the 'recur' > operator and is tail recursive, or uses a trampoline of some sort. When you blow the stack, you'll get an exception saying so, and it usually happens pretty

Re: cells questions

2009-07-20 Thread Jonathan Smith
On Jul 20, 1:27 am, kyle smith wrote: > I'm trying to use Stuart Sierra's implementation of cells.  I want to > sum the values of a large number of cells.  Rather than linearly > summing all the values, I would like to create a tree of cells whose > root contains the sum.  I added the function

cells questions

2009-07-19 Thread kyle smith
I'm trying to use Stuart Sierra's implementation of cells. I want to sum the values of a large number of cells. Rather than linearly summing all the values, I would like to create a tree of cells whose root contains the sum. I added the function commute-cells: (defn commute-cells [f cells] (