
26 Feb
2009
26 Feb
'09
11:39 a.m.
On Thu, Feb 26, 2009 at 05:31:34PM +0100, Daniel Kraft wrote:
Well, my main problem was the lazy evaluation...
No, your main problem was that you were creating 100,000 arrays, each only a little different from the one before.
For this example program... yes of course :) I'm trying to do so when possible, but for my real problem I couldn't figure out a nice way to do it like that, unfortunately. Which does not mean it is impossible of course, but maybe just I need more experience in functional programming... :D
Writing imperative programs in Haskell may not be the best way to gain that experience. What is the pattern of updates in your actual program?