Thanks. I have to admit I really don't understand Julia's tasks. Can you explain how they could be used in this context?
As an experiment today, I did reverse most of the functions, and the code is much cleaner now. I think I may have only needed to write down the problem (my original post) to see the solution. On Saturday, August 23, 2014 8:27:43 PM UTC-6, Abe Schneider wrote: > > It may be worth having both around. If you wrap the stateless versions > with something that keeps state, users get the choice of which one to use. > > For example, you could use Tasks to create generators that produce the > next value. The Task will keep the state for you, which allows you to keep > your DSP code simple and stateless. >
